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