25 instantiations of CodeThisReferenceExpression
Microsoft.Build.Tasks.Core (11)
system.design\stronglytypedresourcebuilder.cs (1)
599var resCultureField = new CodeFieldReferenceExpression((useStatic) ? null : new CodeThisReferenceExpression(), CultureInfoFieldName);
XamlTaskFactory\TaskGenerator.cs (10)
443new CodeThisReferenceExpression(), 488var isPropertySet = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new CodeSnippetExpression(SurroundWithQuotes(fallbackParameter.Value))); 489var propertyNotSet = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new CodeSnippetExpression(SurroundWithQuotes(fallbackParameter.Key))), CodeBinaryOperatorType.ValueEquality, new CodeSnippetExpression(IsOff)); 649new CodeThisReferenceExpression(), 730propertyName.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), ReplaceToolSwitchMethod, new CodeSnippetExpression(SwitchToAdd))); 783var validateInt = new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), ValidateIntegerMethod); 864new CodeThisReferenceExpression(), ReadSwitchMapMethod, 1187checkRequired.Condition, CodeBinaryOperatorType.BooleanAnd, new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new CodeSnippetExpression(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new CodeSnippetExpression("false"))); 1191checkRequired.Condition = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new CodeSnippetExpression(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new CodeSnippetExpression("false")); 1196new CodeThisReferenceExpression(), "RemoveSwitchToolBasedOnValue",
PresentationBuildTasks (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
1192ceEvent = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), elementName); 1276CodeFieldReferenceExpression cfreContentLoaded = new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), CONTENT_LOADED); 1937cdce.TargetObject = new CodeThisReferenceExpression(); 2574cmieCD.Parameters.Add(new CodeThisReferenceExpression()); 2689cmieLoadContent.Parameters.Add(new CodeThisReferenceExpression()); 3134CodeThisReferenceExpression ctreTag = new CodeThisReferenceExpression(); 3150CodeThisReferenceExpression ctre = new CodeThisReferenceExpression();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1670get { return new CodeThisReferenceExpression(); }
System.Windows.Forms.Design (6)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
19private static readonly CodeThisReferenceExpression s_thisRef = new();
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
41ctor.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), InitMethodName));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
14private static readonly CodeThisReferenceExpression s_thisRef = new();
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
88RootContext rootCtx = new(new CodeThisReferenceExpression(), rootObject); 419CodeThisReferenceExpression thisRef = new();
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
737: new CodeThisReferenceExpression(), CultureInfoFieldName);
23 references to CodeThisReferenceExpression
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
3134CodeThisReferenceExpression ctreTag = new CodeThisReferenceExpression(); 3150CodeThisReferenceExpression ctre = new CodeThisReferenceExpression();
System (1)
src\libraries\shims\System\ref\System.cs (1)
93[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeThisReferenceExpression))]
System.CodeDom (8)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
1218else if (e is CodeThisReferenceExpression)
Microsoft\VisualBasic\VBCodeGenerator.cs (3)
1111bool localReference = (e.TargetObject is CodeThisReferenceExpression); 1134if (!(e.TargetObject is CodeThisReferenceExpression)) 1192protected override void GenerateThisReferenceExpression(CodeThisReferenceExpression e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
595else if (e is CodeThisReferenceExpression) 597GenerateThisReferenceExpression((CodeThisReferenceExpression)e); 1492protected abstract void GenerateThisReferenceExpression(CodeThisReferenceExpression e);
System\CodeDom\Compiler\CodeValidator.cs (1)
759else if (e is CodeThisReferenceExpression)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1668private static CodeThisReferenceExpression ThisReference
System.Windows.Forms.Design (11)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
19private static readonly CodeThisReferenceExpression s_thisRef = new();
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (7)
673else if (result is CodeThisReferenceExpression) 720if (methodRef.TargetObject is not CodeThisReferenceExpression) 1509if (GetExpression(manager, target) is CodeThisReferenceExpression) 2215if (target is CodeThisReferenceExpression) 2690if (fieldReferenceEx.TargetObject is CodeThisReferenceExpression) 2724if (propertyReferenceEx.TargetObject is CodeThisReferenceExpression && (names is null || names.ContainsKey(propertyReferenceEx.PropertyName))) 2769else if (expression is CodeThisReferenceExpression or CodeBaseReferenceExpression)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
14private static readonly CodeThisReferenceExpression s_thisRef = new();
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
43[CodeFieldReferenceExpression { TargetObject: CodeThisReferenceExpression } fieldReferenceEx, ..] => fieldReferenceEx.FieldName,
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
419CodeThisReferenceExpression thisRef = new();