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