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