2 writes to _rootSerializer
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
77
_rootSerializer
= null;
277
_rootSerializer
= (CodeDomSerializer?)Activator.CreateInstance(serializerType, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance, binder: null, args: null, culture: null);
9 references to _rootSerializer
System.Windows.Forms.Design (9)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (9)
291
if (
_rootSerializer
is null && HasRootDesignerAttribute(baseType))
305
if (
_rootSerializer
is null && _typeSerializer is null)
321
if (
_rootSerializer
is not null || _typeSerializer is not null)
798
Debug.Assert(
_rootSerializer
is not null || _typeSerializer is not null, $"What are we saving right now? Base component has no serializer: {LoaderHost.RootComponent.GetType().FullName}");
800
if (
_rootSerializer
is not null)
802
typeDeclaration =
_rootSerializer
.Serialize(manager, LoaderHost.RootComponent) as CodeTypeDeclaration;
833
Debug.Assert(
_rootSerializer
is not null || _typeSerializer is not null, "EnsureDocument didn't create a root serializer");
835
if (
_rootSerializer
is not null)
837
_rootSerializer
.Deserialize(manager, _documentType);