5 instantiations of RootContext
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
88RootContext rootCtx = new(new CodeThisReferenceExpression(), rootObject); 420RootContext rootCtx = new(thisRef, root);
System.Windows.Forms.Design.Tests (3)
System\ComponentModel\Design\Serialization\RootContextTests.cs (3)
15RootContext context = new(expression, value); 23Assert.Throws<ArgumentNullException>("expression", () => new RootContext(null, new object())); 30Assert.Throws<ArgumentNullException>("value", () => new RootContext(expression, null));
34 references to RootContext
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
61[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.RootContext))]
System.Windows.Forms.Design (27)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
326if (manager.TryGetContext(out RootContext? root) && root.Value == value)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (13)
342if (manager.TryGetContext(out RootContext? root) && root.Value == value) 485RootContext? rootExp = manager.GetContext<RootContext>(); 530if (manager.TryGetContext(out RootContext? root) && root.Value == lhs) 676if (manager.TryGetContext(out RootContext? rootExp)) 786RootContext? rootExp = manager.GetContext<RootContext>(); 946RootContext? rootExp = manager.GetContext<RootContext>(); 1215RootContext? rootExp = manager.GetContext<RootContext>(); 1672if (manager.TryGetContext(out RootContext? rootEx) && ReferenceEquals(rootEx.Value, value)) 2450if (manager.TryGetContext(out RootContext? root))
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
142RootContext? rootCtx = manager.GetContext<RootContext>();
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
50if (manager.TryGetContext(out CodeTypeDeclaration? typeDecl) && manager.TryGetContext(out RootContext? rootCtx))
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (3)
116RootContext? rootContext = manager.Context[typeof(RootContext)] as RootContext;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
288if (manager.TryGetContext(out RootContext? rootCtx))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
74if (_manager.TryGetContext(out RootContext? rootCtx)) 103private object? RootComponent => _rootComponent ??= _manager.GetContext<RootContext>()?.Value;
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
51if (manager.TryGetContext(out RootContext? rootCtx))
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
88RootContext rootCtx = new(new CodeThisReferenceExpression(), rootObject); 245else if (manager.TryGetContext(out RootContext? rootCtx) && codeObject is CodeExpression exp && rootCtx.Expression == exp) 420RootContext rootCtx = new(thisRef, root);
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\Serialization\RootContextTests.cs (1)
15RootContext context = new(expression, value);
System\ComponentModel\Design\Serialization\SerializeAbsoluteContextTests.cs (5)
19PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(RootContext)); 20yield return new object[] { properties[nameof(RootContext.Expression)] }; 33PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(RootContext)); 34MemberDescriptor member1 = properties[nameof(RootContext.Expression)]; 35MemberDescriptor member2 = properties[nameof(RootContext.Value)];