Example #1
0
 internal LambdaPropertyWithCodeAnalysis()
 {
     property         = new PropertyWithCodeAnalysis();
     lambdaExpression = new CachedExpressionNode <PropertyWithCodeAnalysis, PropertyDeclarationSyntax>(
         property.Node,
         syntax => syntax.ExpressionBody?.Expression,
         (parentSyntax, childSyntax) => parentSyntax.WithExpressionBody(childSyntax == null ? null : SyntaxFactory.ArrowExpressionClause(childSyntax)));
 }
 internal AutoPropertyWithCodeAnalysis()
 {
     property     = new PropertyWithCodeAnalysis();
     initialValue = new CachedExpressionNode <PropertyWithCodeAnalysis, PropertyDeclarationSyntax>(
         property.Node,
         syntax => syntax.Initializer?.Value,
         (parentSyntax, childSyntax) => parentSyntax.WithInitializer(childSyntax == null ? null : SyntaxFactory.EqualsValueClause(childSyntax)));
 }
Example #3
0
 internal PropertyWithBodyWithCodeAnalysis()
 {
     this.property = new PropertyWithCodeAnalysis();
 }
Example #4
0
 internal InterfacePropertyWithCodeAnalysis()
 {
     property = new PropertyWithCodeAnalysis();
 }
Example #5
0
 internal AbstractPropertyWithCodeAnalysis()
 {
     property = new PropertyWithCodeAnalysis();
 }