2 implementations of IDesignerSerializationManager
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
12
private class PassThroughSerializationManager :
IDesignerSerializationManager
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
15
public class DesignerSerializationManager :
IDesignerSerializationManager
309 references to IDesignerSerializationManager
netstandard (1)
netstandard.cs (1)
284
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.
IDesignerSerializationManager
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
270
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.
IDesignerSerializationManager
))]
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\IDesignerSerializationProvider.cs (1)
30
object? GetSerializer(
IDesignerSerializationManager
manager, object? currentSerializer, Type? objectType, Type serializerType);
System.Windows.Forms.Design (223)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (4)
175
dsc.AddFixedService(typeof(
IDesignerSerializationManager
), _serializationManager);
180
sc.AddService<
IDesignerSerializationManager
>(_serializationManager);
783
protected abstract void PerformFlush(
IDesignerSerializationManager
serializationManager);
794
protected abstract void PerformLoad(
IDesignerSerializationManager
serializationManager);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (14)
25
public override object Deserialize(
IDesignerSerializationManager
manager, object state)
68
internal void Deserialize(
IDesignerSerializationManager
manager, Dictionary<string, CodeDomComponentSerializationState> objectState, List<string> objectNames, bool applyDefaults)
127
IDesignerSerializationManager
manager = (
IDesignerSerializationManager
)sender!;
139
private void DeserializeDefaultProperties(
IDesignerSerializationManager
manager, string name, List<string>? defProps)
172
private static void DeserializeDesignTimeProperties(
IDesignerSerializationManager
manager, string name, Dictionary<string, object?>? state)
202
private static IComponent? ResolveNestedName(
IDesignerSerializationManager
? manager, string name, [NotNullIfNotNull(nameof(manager))] out string? outerComponent)
245
private bool ResolveName(
IDesignerSerializationManager
manager, string name, bool canInvokeManager)
403
private void DeserializeState(
IDesignerSerializationManager
manager, string name, CodeDomComponentSerializationState state)
411
private static void DeserializeEventResets(
IDesignerSerializationManager
? manager, string name, List<string>? eventNames)
432
private static void DeserializeModifier(
IDesignerSerializationManager
manager, string name, object? state)
449
public override object Serialize(
IDesignerSerializationManager
manager, object state)
460
internal void SetupVariableReferences(
IDesignerSerializationManager
manager, IContainer container, Dictionary<object, ObjectData> objectData, IList shimObjectNames)
490
internal void Serialize(
IDesignerSerializationManager
manager, Dictionary<object, ObjectData> objectData, Dictionary<string, CodeDomComponentSerializationState> objectState, IList shimObjectNames)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (7)
138
if (_provider?.GetService(typeof(
IDesignerSerializationManager
)) is DesignerSerializationManager hostManager)
142
((
IDesignerSerializationManager
)manager).AddSerializationProvider(provider);
151
((
IDesignerSerializationManager
)manager).SetName(data._value, data._name);
208
if (provider?.GetService(typeof(
IDesignerSerializationManager
)) is DesignerSerializationManager hostManager)
212
((
IDesignerSerializationManager
)delegator.Manager).AddSerializationProvider(serProvider);
245
if (delegator is
IDesignerSerializationManager
dsm && container is not null)
263
object? instance = ((
IDesignerSerializationManager
)delegator.Manager).GetInstance(name);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (29)
21
ContextStack
IDesignerSerializationManager
.Context
23
get => ((
IDesignerSerializationManager
)Manager).Context;
26
PropertyDescriptorCollection
IDesignerSerializationManager
.Properties
28
get => ((
IDesignerSerializationManager
)Manager).Properties;
31
event ResolveNameEventHandler
IDesignerSerializationManager
.ResolveName
35
((
IDesignerSerializationManager
)Manager).ResolveName += value;
40
((
IDesignerSerializationManager
)Manager).ResolveName -= value;
45
event EventHandler
IDesignerSerializationManager
.SerializationComplete
47
add => ((
IDesignerSerializationManager
)Manager).SerializationComplete += value;
48
remove => ((
IDesignerSerializationManager
)Manager).SerializationComplete -= value;
51
void
IDesignerSerializationManager
.AddSerializationProvider(IDesignerSerializationProvider provider)
53
((
IDesignerSerializationManager
)Manager).AddSerializationProvider(provider);
56
object
IDesignerSerializationManager
.CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer)
58
return ((
IDesignerSerializationManager
)Manager).CreateInstance(type, arguments, name, addToContainer);
61
object?
IDesignerSerializationManager
.GetInstance(string name)
63
object? instance = ((
IDesignerSerializationManager
)Manager).GetInstance(name);
78
string?
IDesignerSerializationManager
.GetName(object value)
80
return ((
IDesignerSerializationManager
)Manager).GetName(value);
83
object?
IDesignerSerializationManager
.GetSerializer(Type? objectType, Type serializerType)
85
return ((
IDesignerSerializationManager
)Manager).GetSerializer(objectType, serializerType);
88
Type?
IDesignerSerializationManager
.GetType(string typeName)
90
return ((
IDesignerSerializationManager
)Manager).GetType(typeName);
93
void
IDesignerSerializationManager
.RemoveSerializationProvider(IDesignerSerializationProvider provider)
95
((
IDesignerSerializationManager
)Manager).RemoveSerializationProvider(provider);
98
void
IDesignerSerializationManager
.ReportError(object errorInformation)
100
((
IDesignerSerializationManager
)Manager).ReportError(errorInformation);
103
void
IDesignerSerializationManager
.SetName(object instance, string name)
105
((
IDesignerSerializationManager
)Manager).SetName(instance, name);
110
return ((
IDesignerSerializationManager
)Manager).GetService(serviceType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (5)
188
private void EnsureDocument(
IDesignerSerializationManager
manager)
384
private bool IntegrateSerializedTree(
IDesignerSerializationManager
manager, CodeTypeDeclaration newDecl)
658
EnsureDocument(GetService<
IDesignerSerializationManager
>()!);
792
protected override void PerformFlush(
IDesignerSerializationManager
manager)
823
protected override void PerformLoad(
IDesignerSerializationManager
manager)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (3)
86
private static LocalizationCodeDomSerializer? GetCodeDomSerializer(
IDesignerSerializationManager
manager, object? currentSerializer, Type? objectType)
138
IDesignerSerializationManager
manager,
194
object? IDesignerSerializationProvider.GetSerializer(
IDesignerSerializationManager
manager, object? currentSerializer, Type? objectType, Type serializerType)
System\ComponentModel\Design\Serialization\CodeDomSerializationProvider.cs (1)
21
object? IDesignerSerializationProvider.GetSerializer(
IDesignerSerializationManager
manager, object? currentSerializer, Type? objectType, Type serializerType)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (7)
44
public virtual object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
100
protected object? DeserializeStatementToInstance(
IDesignerSerializationManager
manager, CodeStatement statement)
134
public virtual object? Serialize(
IDesignerSerializationManager
manager, object value)
206
public virtual object? SerializeAbsolute(
IDesignerSerializationManager
manager, object value)
227
public virtual CodeStatementCollection SerializeMember(
IDesignerSerializationManager
manager, object owningObject, MemberDescriptor member)
263
public virtual CodeStatementCollection SerializeMemberAbsolute(
IDesignerSerializationManager
manager, object owningObject, MemberDescriptor member)
294
protected CodeExpression? SerializeToReferenceExpression(
IDesignerSerializationManager
manager, object value)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (46)
33
protected virtual object DeserializeInstance(
IDesignerSerializationManager
manager, Type type, object?[]? parameters, string? name, bool addToContainer)
45
internal static string GetTypeNameFromCodeTypeReference(
IDesignerSerializationManager
manager, CodeTypeReference typeref)
58
private static void GetTypeNameFromCodeTypeReferenceHelper(
IDesignerSerializationManager
manager, CodeTypeReference typeref, StringBuilder typeName)
110
private static bool TryGetTargetFrameworkProviderAndCheckType(
IDesignerSerializationManager
manager, object instance, [NotNullWhen(true)] out TypeDescriptionProvider? targetProvider)
141
protected static Type GetReflectionTypeFromTypeHelper(
IDesignerSerializationManager
manager, Type type)
163
internal static void Error(
IDesignerSerializationManager
manager, string exceptionText, string? helpLink)
191
protected static Type GetReflectionTypeHelper(
IDesignerSerializationManager
manager, object instance)
210
protected static PropertyDescriptorCollection GetPropertiesHelper(
IDesignerSerializationManager
manager, object instance, Attribute[]? attributes)
242
protected static EventDescriptorCollection GetEventsHelper(
IDesignerSerializationManager
manager, object instance, Attribute[]? attributes)
274
protected static AttributeCollection GetAttributesHelper(
IDesignerSerializationManager
manager, object instance)
296
protected static AttributeCollection GetAttributesFromTypeHelper(
IDesignerSerializationManager
manager, Type type)
330
protected void DeserializePropertiesFromResources(
IDesignerSerializationManager
manager, object value, Attribute[]? filter)
403
protected void DeserializeStatement(
IDesignerSerializationManager
manager, CodeStatement statement)
470
private void DeserializeVariableDeclarationStatement(
IDesignerSerializationManager
manager, CodeVariableDeclarationStatement statement)
478
private void DeserializeDetachEventStatement(
IDesignerSerializationManager
manager, CodeRemoveEventStatement statement)
514
private void DeserializeAssignStatement(
IDesignerSerializationManager
manager, CodeAssignStatement statement)
654
protected object? DeserializeExpression(
IDesignerSerializationManager
manager, string? name, CodeExpression? expression)
1173
private void DeserializeAttachEventStatement(
IDesignerSerializationManager
manager, CodeAttachEventStatement statement)
1488
private object? DeserializePropertyReferenceExpression(
IDesignerSerializationManager
manager, CodePropertyReferenceExpression propertyReferenceEx, bool reportError)
1538
private bool DeserializePropertyAssignStatement(
IDesignerSerializationManager
manager, CodeAssignStatement statement,
1655
protected CodeExpression? GetExpression(
IDesignerSerializationManager
manager, object value)
1753
protected CodeDomSerializer? GetSerializer(
IDesignerSerializationManager
manager, object? value)
1841
protected CodeDomSerializer? GetSerializer(
IDesignerSerializationManager
manager, Type valueType)
1846
protected bool IsSerialized(
IDesignerSerializationManager
manager, object value)
1856
protected bool IsSerialized(
IDesignerSerializationManager
manager, object value, bool honorPreset)
1876
protected CodeExpression? SerializeCreationExpression(
IDesignerSerializationManager
manager, object value, out bool isComplete)
1935
private CodeExpression? SerializeInstanceDescriptor(
IDesignerSerializationManager
manager, object value, InstanceDescriptor descriptor)
2057
protected string GetUniqueName(
IDesignerSerializationManager
manager, object value)
2100
protected void SerializeEvent(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object value, EventDescriptor descriptor)
2130
protected void SerializeEvents(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object value, params Attribute[]? filter)
2142
protected void SerializeProperties(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object value, Attribute[]? filter)
2167
private static PropertyDescriptorCollection GetFilteredProperties(
IDesignerSerializationManager
manager, object value, Attribute[]? filter)
2194
protected void SerializePropertiesToResources(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object value, Attribute[]? filter)
2246
protected void SerializeProperty(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object value, PropertyDescriptor propertyToSerialize)
2276
protected void SerializeResource(
IDesignerSerializationManager
manager, string resourceName, object? value)
2285
protected void SerializeResourceInvariant(
IDesignerSerializationManager
manager, string resourceName, object? value)
2305
protected CodeExpression? SerializeToExpression(
IDesignerSerializationManager
manager, object? value)
2430
private static CodeExpression? GetLegacyExpression(
IDesignerSerializationManager
manager, object value)
2499
private static void SetLegacyExpression(
IDesignerSerializationManager
manager, object value)
2525
protected CodeExpression? SerializeToResourceExpression(
IDesignerSerializationManager
manager, object? value)
2538
protected CodeExpression? SerializeToResourceExpression(
IDesignerSerializationManager
manager, object? value, bool ensureInvariant)
2576
protected void SetExpression(
IDesignerSerializationManager
manager, object value, CodeExpression expression)
2587
protected void SetExpression(
IDesignerSerializationManager
manager, object value, CodeExpression expression, bool isPreset)
2602
internal static void FillStatementTable(
IDesignerSerializationManager
manager, IDictionary table, CodeStatementCollection statements)
2607
internal static void FillStatementTable(
IDesignerSerializationManager
manager, IDictionary table, Dictionary<string, string>? names, CodeStatementCollection statements, string? className)
2790
internal static Type? GetType(
IDesignerSerializationManager
manager, string name, Dictionary<string, string>? names)
System\ComponentModel\Design\Serialization\CodeDomSerializerException.cs (2)
24
public CodeDomSerializerException(string? message,
IDesignerSerializationManager
manager) : base(message)
29
public CodeDomSerializerException(Exception? ex,
IDesignerSerializationManager
manager) : base(ex?.Message, ex)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (6)
129
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
296
protected virtual object? SerializeCollection(
IDesignerSerializationManager
manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
386
private CodeArrayCreateExpression? SerializeArray(
IDesignerSerializationManager
manager, Type targetType, Array array, ICollection valuesToSerialize)
469
IDesignerSerializationManager
manager,
554
IDesignerSerializationManager
manager,
655
private bool ShouldClearCollection(
IDesignerSerializationManager
manager, ICollection collection)
System\ComponentModel\Design\Serialization\ComponentCache.cs (2)
14
private readonly
IDesignerSerializationManager
_serManager;
16
internal ComponentCache(
IDesignerSerializationManager
manager)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (6)
17
private Type[] GetContainerConstructor(
IDesignerSerializationManager
manager)
54
private static bool CanCacheComponent(
IDesignerSerializationManager
manager, object value, PropertyDescriptorCollection? props)
87
protected override object DeserializeInstance(
IDesignerSerializationManager
manager, Type type, object?[]? parameters, string? name, bool addToContainer)
102
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
348
IDesignerSerializationManager
? mainManager = manager.GetService<
IDesignerSerializationManager
>();
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (2)
23
protected override CodeMemberMethod GetInitializeMethod(
IDesignerSerializationManager
manager, CodeTypeDeclaration typeDecl, object value)
52
protected override CodeMemberMethod[] GetInitializeMethods(
IDesignerSerializationManager
manager, CodeTypeDeclaration typeDecl)
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (2)
25
protected override object DeserializeInstance(
IDesignerSerializationManager
manager, Type type, object?[]? parameters, string? name, bool addToContainer)
45
public override object Serialize(
IDesignerSerializationManager
manager, object value)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (14)
504
((
IDesignerSerializationManager
)this).AddSerializationProvider(provider);
640
ContextStack
IDesignerSerializationManager
.Context
658
PropertyDescriptorCollection
IDesignerSerializationManager
.Properties
694
event ResolveNameEventHandler
IDesignerSerializationManager
.ResolveName
716
event EventHandler
IDesignerSerializationManager
.SerializationComplete
731
void
IDesignerSerializationManager
.AddSerializationProvider(IDesignerSerializationProvider provider)
741
object
IDesignerSerializationManager
.CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer)
793
object?
IDesignerSerializationManager
.GetInstance(string name)
823
string?
IDesignerSerializationManager
.GetName(object value)
846
object?
IDesignerSerializationManager
.GetSerializer(Type? objectType, Type serializerType)
854
Type?
IDesignerSerializationManager
.GetType(string typeName)
885
void
IDesignerSerializationManager
.RemoveSerializationProvider(IDesignerSerializationProvider provider)
896
void
IDesignerSerializationManager
.ReportError(object errorInformation)
917
void
IDesignerSerializationManager
.SetName(object instance, string name)
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
23
public override object Serialize(
IDesignerSerializationManager
manager, object? value)
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (2)
23
public override void Serialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor, CodeStatementCollection statements)
77
public override bool ShouldSerialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor) => true;
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (2)
47
private static bool EmitApplyMethod(
IDesignerSerializationManager
manager, object owner)
64
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
System\ComponentModel\Design\Serialization\MemberCodeDomSerializer.cs (2)
21
IDesignerSerializationManager
manager,
30
public abstract bool ShouldSerialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor);
System\ComponentModel\Design\Serialization\PrimitiveCodeDomSerializer.cs (1)
23
public override object Serialize(
IDesignerSerializationManager
manager, object? value) => value switch
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (6)
23
private static object? GetPropertyValue(
IDesignerSerializationManager
manager, PropertyDescriptor property, object value, out bool validValue)
83
public override void Serialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor, CodeStatementCollection statements)
130
private void SerializeContentProperty(
IDesignerSerializationManager
manager, object value, PropertyDescriptor property, bool isExtender, CodeStatementCollection statements)
224
private void SerializeExtenderProperty(
IDesignerSerializationManager
manager, object value, PropertyDescriptor property, CodeStatementCollection statements)
282
private void SerializeNormalProperty(
IDesignerSerializationManager
manager, object value, PropertyDescriptor property, CodeStatementCollection statements)
360
public override bool ShouldSerialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (17)
68
public override object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
118
private static SerializationResourceManager CreateResourceManager(
IDesignerSerializationManager
manager)
135
protected override object DeserializeInstance(
IDesignerSerializationManager
manager, Type type, object?[]? parameters, string? name, bool addToContainer)
155
public static object? DeserializeInvariant(
IDesignerSerializationManager
manager, string resourceName)
167
private static Type? GetCastType(
IDesignerSerializationManager
manager, object? value)
194
public static IDictionaryEnumerator? GetEnumerator(
IDesignerSerializationManager
manager, CultureInfo culture)
203
public static IDictionaryEnumerator? GetMetadataEnumerator(
IDesignerSerializationManager
manager)
212
private static SerializationResourceManager GetResourceManager(
IDesignerSerializationManager
manager)
230
public override object Serialize(
IDesignerSerializationManager
manager, object value)
241
public object Serialize(
IDesignerSerializationManager
manager, object value, bool shouldSerializeInvariant)
253
public object Serialize(
IDesignerSerializationManager
manager, object? value, bool shouldSerializeInvariant, bool ensureInvariant)
261
private CodeExpression Serialize(
IDesignerSerializationManager
manager, object? value, bool forceInvariant, bool shouldSerializeInvariant, bool ensureInvariant)
367
public object SerializeInvariant(
IDesignerSerializationManager
manager, object value, bool shouldSerializeValue)
375
public static void SerializeMetadata(
IDesignerSerializationManager
manager, string name, object? value, bool shouldSerializeValue)
385
public static void WriteResource(
IDesignerSerializationManager
manager, string name, object? value)
395
public static void WriteResourceInvariant(
IDesignerSerializationManager
manager, string name, object? value)
404
internal static void ApplyCacheEntry(
IDesignerSerializationManager
manager, ComponentCache.Entry entry)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (6)
25
private readonly
IDesignerSerializationManager
_manager;
39
public SerializationResourceManager(
IDesignerSerializationManager
manager)
140
private static void AddCacheEntry(
IDesignerSerializationManager
manager, string name, object? value, bool isMetadata, bool forceInvariant, bool shouldSerializeValue, bool ensureInvariant)
516
public void SetMetadata(
IDesignerSerializationManager
manager, string resourceName, object? value, bool shouldSerializeValue, bool applyingCachedResources)
600
public void SetValue(
IDesignerSerializationManager
manager, string resourceName, object? value, bool forceInvariant, bool shouldSerializeInvariant, bool ensureInvariant, bool applyingCachedResources)
721
public string SetValue(
IDesignerSerializationManager
manager, ExpressionContext? tree, object? value, bool forceInvariant, bool shouldSerializeInvariant, bool ensureInvariant, bool applyingCachedResources)
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (5)
29
public override void Serialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor, CodeStatementCollection statements)
46
private CultureInfo? GetLocalizationLanguage(
IDesignerSerializationManager
manager)
68
IDesignerSerializationManager
? manager = sender as
IDesignerSerializationManager
;
81
public override bool ShouldSerialize(
IDesignerSerializationManager
manager, object value, MemberDescriptor descriptor)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (8)
38
public virtual object Deserialize(
IDesignerSerializationManager
manager, CodeTypeDeclaration declaration)
215
private object? DeserializeName(
IDesignerSerializationManager
manager, string name, CodeStatementCollection? statements)
334
protected virtual CodeMemberMethod GetInitializeMethod(
IDesignerSerializationManager
manager, CodeTypeDeclaration declaration, object value)
353
protected virtual CodeMemberMethod[] GetInitializeMethods(
IDesignerSerializationManager
manager, CodeTypeDeclaration declaration)
379
IDesignerSerializationManager
manager = (
IDesignerSerializationManager
)sender!;
408
public virtual CodeTypeDeclaration Serialize(
IDesignerSerializationManager
manager, object root, ICollection? members)
478
private void IntegrateStatements(
IDesignerSerializationManager
manager, object root, ICollection? members, StatementContext statementCtx, CodeTypeDeclaration typeDecl)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (8)
23
public override object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
146
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
220
private void SerializeControlHierarchy(
IDesignerSerializationManager
manager, IDesignerHost host, object? value)
338
IDesignerSerializationManager
manager,
391
private void SerializePerformLayout(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object control)
396
private void SerializeResumeLayout(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object control)
404
private void SerializeSuspendLayout(
IDesignerSerializationManager
manager, CodeStatementCollection statements, object control)
413
private void SerializeZOrder(
IDesignerSerializationManager
manager, CodeStatementCollection statements, Control control)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (1)
18
IDesignerSerializationManager
manager,
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (1)
26
protected override object SerializeCollection(
IDesignerSerializationManager
manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\DocumentDesigner.cs (3)
42
internal static
IDesignerSerializationManager
s_manager;
739
s_manager = host.GetService(typeof(
IDesignerSerializationManager
)) as
IDesignerSerializationManager
;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (2)
20
public override object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
40
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
20
protected override object SerializeCollection(
IDesignerSerializationManager
manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (3)
19
public override object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
24
private static CodeDomSerializer GetBaseSerializer(
IDesignerSerializationManager
manager)
34
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2224
protected override object SerializeCollection(
IDesignerSerializationManager
manager, CodeExpression targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (3)
21
public override object? Deserialize(
IDesignerSerializationManager
manager, object codeObject)
27
private static CodeDomSerializer GetBaseSerializer(
IDesignerSerializationManager
manager)
34
public override object? Serialize(
IDesignerSerializationManager
manager, object value)
System.Windows.Forms.Design.Tests (77)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (8)
85
yield return new object[] { new Mock<
IDesignerSerializationManager
>(MockBehavior.Strict) };
94
.Setup(p => p.GetService(typeof(
IDesignerSerializationManager
)))
103
mockServiceProvider.Verify(p => p.GetService(typeof(
IDesignerSerializationManager
)), Times.Once());
107
mockServiceProvider.Verify(p => p.GetService(typeof(
IDesignerSerializationManager
)), Times.Once());
190
.Setup(p => p.GetService(typeof(
IDesignerSerializationManager
)))
232
mockServiceProvider.Verify(p => p.GetService(typeof(
IDesignerSerializationManager
)), Times.Exactly(2));
283
.Setup(p => p.GetService(typeof(
IDesignerSerializationManager
)))
332
mockServiceProvider.Verify(p => p.GetService(typeof(
IDesignerSerializationManager
)), Times.Exactly(2));
System\ComponentModel\Design\Serialization\CodeDomSerializerExceptionTests.cs (6)
48
Mock<
IDesignerSerializationManager
> mockDesignerSerializationManager = new(MockBehavior.Strict);
55
public void CodeDomSerializerException_Ctor_String_IDesignerSerializationManager(string message,
IDesignerSerializationManager
manager)
65
Mock<
IDesignerSerializationManager
> mockDesignerSerializationManager = new(MockBehavior.Strict);
72
public void CodeDomSerializerException_Ctor_Exception_IDesignerSerializationManager(Exception innerException,
IDesignerSerializationManager
manager)
83
Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException("message", (
IDesignerSerializationManager
)null));
84
Assert.Throws<ArgumentNullException>("manager", () => new CodeDomSerializerException(new InvalidOperationException(), (
IDesignerSerializationManager
)null));
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (63)
17
IDesignerSerializationManager
iManager = manager;
58
IDesignerSerializationManager
iManager = manager;
111
IDesignerSerializationManager
iManager = manager;
122
IDesignerSerializationManager
iManager = manager;
135
IDesignerSerializationManager
iManager = manager;
204
IDesignerSerializationManager
iManager = manager;
241
IDesignerSerializationManager
iManager = manager;
302
IDesignerSerializationManager
iManager = manager;
384
IDesignerSerializationManager
iManager = manager;
396
IDesignerSerializationManager
iManager = manager;
417
IDesignerSerializationManager
iManager = manager;
436
IDesignerSerializationManager
iManager = manager;
459
IDesignerSerializationManager
iManager = manager;
535
IDesignerSerializationManager
iManager = manager;
558
IDesignerSerializationManager
iManager = manager;
597
IDesignerSerializationManager
iManager = manager;
623
IDesignerSerializationManager
iManager = manager;
676
IDesignerSerializationManager
iManager = manager;
752
IDesignerSerializationManager
iManager = manager;
765
IDesignerSerializationManager
iManager = manager;
783
IDesignerSerializationManager
iManager = manager;
817
IDesignerSerializationManager
iManager = manager;
858
IDesignerSerializationManager
iManager = manager;
867
IDesignerSerializationManager
iManager = manager;
917
IDesignerSerializationManager
iManager = manager;
928
IDesignerSerializationManager
iManager = manager;
941
IDesignerSerializationManager
iManager = manager;
957
IDesignerSerializationManager
iManager = manager;
965
IDesignerSerializationManager
iManager = manager;
1017
IDesignerSerializationManager
iManager = mockManager.Object;
1032
IDesignerSerializationManager
iManager = new DesignerSerializationManager(mockServiceProvider.Object);
1044
IDesignerSerializationManager
iManager = new DesignerSerializationManager(provider);
1055
IDesignerSerializationManager
iManager = new DesignerSerializationManager();
1300
IDesignerSerializationManager
iManager = manager;
1312
IDesignerSerializationManager
iManager = manager;
1326
IDesignerSerializationManager
iManager = manager;
1359
IDesignerSerializationManager
iManager = manager;
1403
IDesignerSerializationManager
iManager = manager;
1412
IDesignerSerializationManager
iManager = manager;
1587
IDesignerSerializationManager
iManager = manager;
1611
IDesignerSerializationManager
iManager = manager;
1621
IDesignerSerializationManager
iManager = manager;
1630
IDesignerSerializationManager
iManager = new DesignerSerializationManager();
1638
IDesignerSerializationManager
iManager = manager;
1654
IDesignerSerializationManager
iManager = manager;
1716
IDesignerSerializationManager
iManager = manager;
1739
IDesignerSerializationManager
iManager = manager;
1806
IDesignerSerializationManager
iManager = manager;
1839
IDesignerSerializationManager
iManager = manager;
1863
IDesignerSerializationManager
iManager = manager;
1875
IDesignerSerializationManager
iManager = manager;
1885
IDesignerSerializationManager
iManager = manager;
1896
IDesignerSerializationManager
iManager = manager;
1906
IDesignerSerializationManager
iManager = manager;
1915
IDesignerSerializationManager
iManager = manager;
1933
IDesignerSerializationManager
iManager = manager;
1942
IDesignerSerializationManager
iManager = manager;
1952
IDesignerSerializationManager
iManager = manager;
1965
IDesignerSerializationManager
iManager = manager;
1978
IDesignerSerializationManager
iManager = manager;
2120
public object GetSerializer(
IDesignerSerializationManager
manager, object currentSerializer, Type objectType, Type serializerType)
2134
public object GetSerializer(
IDesignerSerializationManager
manager, object currentSerializer, Type objectType, Type serializerType)
2142
public object GetSerializer(
IDesignerSerializationManager
manager, object currentSerializer, Type objectType, Type serializerType)
System.Windows.Forms.Primitives (4)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerHelper.cs (4)
9
this
IDesignerSerializationManager
manager,
22
public static T? GetContext<T>(this
IDesignerSerializationManager
manager) where T : class
27
public static T? GetSerializer<T>(this
IDesignerSerializationManager
manager, Type? objectType) where T : class
32
public static bool TryGetSerializer<T>(this
IDesignerSerializationManager
manager, Type? objectType, [NotNullWhen(true)] out T? serializer) where T : class
System.Windows.Forms.UI.IntegrationTests (2)
DesignBehaviorsTests.cs (2)
298
protected override void PerformFlush(
IDesignerSerializationManager
serializationManager)
303
protected override void PerformLoad(
IDesignerSerializationManager
serializationManager)