public override SyntaxNode VisitPropertyDeclaration(PropertyDeclarationSyntax node)
{
// remake property with the values from incoming node
var changedProp =
SyntaxFactory.PropertyDeclaration(
node.Type,
node.Identifier.ValueText + " "
)
.AddAccessorListAccessors(
SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration).WithSemicolonToken(SyntaxFactory.Token(SyntaxKind.SemicolonToken)),
SyntaxFactory.AccessorDeclaration(SyntaxKind.SetAccessorDeclaration).WithSemicolonToken(SyntaxFactory.Token(SyntaxKind.SemicolonToken))
);
foreach (var modifier in node.Modifiers)
{
changedProp = changedProp.AddModifiers(modifier);
}
return changedProp;
}
internal string Heading
{
get
{
string HeadingRet = myActivity.Heading;
return HeadingRet;
}
set
{
myActivity.Heading = value.substring(0,20);
}
}
internal string Heading { get => myActivity.Heading; set => myActivity.Heading = value.substring(0,20); }
internal string Heading {get; set;}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.