20 instantiations of CodeSnippetExpression
System.Activities (3)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (3)
1506
CodeVariableDeclarationStatement statement = new CodeVariableDeclarationStatement(returnType, "expression", new
CodeSnippetExpression
(expressionText));
1542
CodeStatement statement = new CodeMethodReturnStatement(new
CodeSnippetExpression
(expressionText));
1589
CodeAssignStatement statement = new CodeAssignStatement(new
CodeSnippetExpression
(expressionText), new CodeArgumentReferenceExpression(paramName));
System.Management (9)
WmiGenerator.cs (9)
357
new
CodeSnippetExpression
(PrivateNamesUsed["AutoCommitProperty"].ToString()),false,
994
cmp.GetStatements.Add (new CodeMethodReturnStatement (new
CodeSnippetExpression
(propValue.ToString())));
1042
new
CodeSnippetExpression
("value")));
1112
new
CodeSnippetExpression
("value")));
1553
new
CodeSnippetExpression
("value"));
1556
ccs.FalseStatements.Add(new CodeAssignStatement(cie,new
CodeSnippetExpression
("value")));
1562
cmp.SetStatements.Add(new CodeAssignStatement(cie,new
CodeSnippetExpression
("value")));
4180
cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new
CodeSnippetExpression
(" \"NULL_ENUM_VALUE\" "))));
6117
new
CodeSnippetExpression
("value")));
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
1106
enumMember.InitExpression = new
CodeSnippetExpression
(enumDataContract.GetStringFromEnumValue(longValue));
System.Web (5)
Compilation\BaseCodeDomTreeGenerator.cs (1)
787
new
CodeSnippetExpression
(_dummyVariable));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (3)
1302
CodeExpression expr = new
CodeSnippetExpression
(codeBlock.Content.Trim());
1503
new
CodeSnippetExpression
(codeExpression),
1580
new
CodeSnippetExpression
(content));
Compilation\DataBindingExpressionBuilder.cs (1)
142
CodeExpression expr = new
CodeSnippetExpression
(bpe.Expression);
System.Workflow.ComponentModel (1)
AuthoringOM\Design\CustomActivityDesigner.cs (1)
660
attributeList.Add(new AttributeInfo(typeof(DesignerSerializationVisibilityAttribute), new string[] { }, new object[] { new
CodeSnippetExpression
(typeof(DesignerSerializationVisibility).Name + "." + property.DesignerSerializationVisibility.ToString()) }));
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
298
codeExp = new
CodeSnippetExpression
(paramInfo.TextValue);
15 references to CodeSnippetExpression
System (12)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
983
private void GenerateSnippetExpression(
CodeSnippetExpression
e) {
1690
else if (e is
CodeSnippetExpression
) {
1691
GenerateSnippetExpression((
CodeSnippetExpression
)e);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1314
protected override void GenerateSnippetExpression(
CodeSnippetExpression
e) {
compmod\system\codedom\CodeSnippetExpression.cs (2)
32
/// Initializes a new instance of <see cref='System.CodeDom.
CodeSnippetExpression
'/>.
40
/// Initializes a new instance of <see cref='System.CodeDom.
CodeSnippetExpression
'/> using the specified snippet
compmod\system\codedom\compiler\CodeGenerator.cs (3)
632
else if (e is
CodeSnippetExpression
) {
633
GenerateSnippetExpression((
CodeSnippetExpression
)e);
1433
protected abstract void GenerateSnippetExpression(
CodeSnippetExpression
e);
compmod\system\codedom\compiler\CodeValidator.cs (3)
618
else if (e is
CodeSnippetExpression
) {
619
ValidateSnippetExpression((
CodeSnippetExpression
)e);
735
private void ValidateSnippetExpression(
CodeSnippetExpression
e) {
System.Workflow.ComponentModel (3)
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
168
else if (codeArgument.Value is
CodeSnippetExpression
)
169
argumentValues[index] = (codeArgument.Value as
CodeSnippetExpression
).Value;
AuthoringOM\Design\DesignerInterfaces.cs (1)
42
void CreateField(string className, string fieldName, Type fieldType, Type[] genericParameterTypes, MemberAttributes attributes,
CodeSnippetExpression
initializationExpression, bool overwriteExisting);