17 references to GetContext
System.Windows.Forms.Design (17)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (8)
168CodeStatement? statement = manager.GetContext<CodeStatement>(); 485RootContext? rootExp = manager.GetContext<RootContext>(); 786RootContext? rootExp = manager.GetContext<RootContext>(); 946RootContext? rootExp = manager.GetContext<RootContext>(); 1215RootContext? rootExp = manager.GetContext<RootContext>(); 1730ComponentCache.Entry? parentEntry = manager.GetContext<ComponentCache.Entry>(); 2075ComponentCache? cache = manager.GetContext<ComponentCache>(); 2398saveStatements ??= manager.GetContext<CodeStatementCollection>();
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
666PropertyDescriptor? property = manager.GetContext<PropertyDescriptor>();
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
142RootContext? rootCtx = manager.GetContext<RootContext>(); 229CodeTypeDeclaration typeDecl = manager.GetContext<CodeTypeDeclaration>()!;
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
187SerializeAbsoluteContext absolute = manager.GetContext<SerializeAbsoluteContext>()!;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (2)
273CodeStatementCollection? statements = manager.GetContext<CodeStatementCollection>(); 322ExpressionContext? tree = manager.GetContext<ExpressionContext>();
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (3)
103private object? RootComponent => _rootComponent ??= _manager.GetContext<RootContext>()?.Value; 150manager.GetContext<PropertyDescriptor>(), 151manager.GetContext<ExpressionContext>());