public static String literalFormat(this LocalVariableDeclaration localVariableDeclaration) { var initializer = localVariableDeclaration.initializer(); if (initializer != null && initializer is PrimitiveExpression) { return(((PrimitiveExpression)initializer).LiteralFormat.str()); } return(null); }
public static string value(this LocalVariableDeclaration localVariableDeclaration) { var initializer = localVariableDeclaration.initializer(); if (initializer != null && initializer is PrimitiveExpression) { return(((PrimitiveExpression)initializer).StringValue); } return(null); }