Exemple #1
0
 public static LocalDeclarationStatementSyntax LocalDeclarationStatement(
     ITypeSymbol typeSymbol,
     string name,
     string parameterName,
     string propertyName)
 {
     return(CSharpFactory.LocalDeclarationStatement(
                typeSymbol.ToTypeSyntax(SymbolDisplayFormats.Default),
                name,
                SimpleMemberAccessExpression(
                    IdentifierName(parameterName),
                    IdentifierName(propertyName))));
 }