CollectionCodeDomSerializer Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Serializes collections.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

System.Object
  System.ComponentModel.Design.Serialization.CodeDomSerializerBase
    System.ComponentModel.Design.Serialization.CodeDomSerializer
      System.ComponentModel.Design.Serialization.CollectionCodeDomSerializer

public class CollectionCodeDomSerializer : CodeDomSerializer

NameDescription
System_CAPS_pubmethodCollectionCodeDomSerializer()

Initializes a new instance of the CollectionCodeDomSerializer class.

NameDescription
System_CAPS_pubmethodDeserialize(IDesignerSerializationManager, Object)

Deserializes the specified serialized CodeDOM object into an object.(Inherited from CodeDomSerializer.)

System_CAPS_protmethodDeserializeExpression(IDesignerSerializationManager, String, CodeExpression)

Deserializes the given expression into an in-memory object.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodDeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean)

Returns an instance of the given type.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodDeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[])

Deserializes properties on the given object from the invariant culture’s resource bundle.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodDeserializeStatement(IDesignerSerializationManager, CodeStatement)

Deserializes a statement by interpreting and executing a CodeDOM statement.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodDeserializeStatementToInstance(IDesignerSerializationManager, CodeStatement)

Deserializes a single statement.(Inherited from CodeDomSerializer.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodGetExpression(IDesignerSerializationManager, Object)

Returns an expression for the given object.(Inherited from CodeDomSerializerBase.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetSerializer(IDesignerSerializationManager, Object)

Locates a serializer for the given object value.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodGetSerializer(IDesignerSerializationManager, Type)

Locates a serializer for the given type.(Inherited from CodeDomSerializerBase.)

System_CAPS_pubmethodGetTargetComponentName(CodeStatement, CodeExpression, Type)

Determines which statement group the given statement should belong to.(Inherited from CodeDomSerializer.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodGetUniqueName(IDesignerSerializationManager, Object)

Returns a unique name for the given object.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodIsSerialized(IDesignerSerializationManager, Object)

Returns a value indicating whether the given object has been serialized.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodIsSerialized(IDesignerSerializationManager, Object, Boolean)

Returns a value indicating whether the given object has been serialized, optionally considering preset expressions.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMethodSupportsSerialization(MethodInfo)

Verifies serialization support by the method.

System_CAPS_pubmethodSerialize(IDesignerSerializationManager, Object)

Serializes the given collection into a CodeDOM object.(Overrides CodeDomSerializer.Serialize(IDesignerSerializationManager, Object).)

System_CAPS_pubmethodSerializeAbsolute(IDesignerSerializationManager, Object)

Serializes the given object, accounting for default values.(Inherited from CodeDomSerializer.)

System_CAPS_protmethodSerializeCollection(IDesignerSerializationManager, CodeExpression, Type, ICollection, ICollection)

Serializes the given collection.

System_CAPS_protmethodSerializeCreationExpression(IDesignerSerializationManager, Object, Boolean)

Returns an expression representing the creation of the given object.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor)

Serializes the given event into the given statement collection.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the specified events into the given statement collection.(Inherited from CodeDomSerializerBase.)

System_CAPS_pubmethodSerializeMember(IDesignerSerializationManager, Object, MemberDescriptor)

Serializes the given member on the given object.(Inherited from CodeDomSerializer.)

System_CAPS_pubmethodSerializeMemberAbsolute(IDesignerSerializationManager, Object, MemberDescriptor)

Serializes the given member, accounting for default values.(Inherited from CodeDomSerializer.)

System_CAPS_protmethodSerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the properties on the given object into the given statement collection.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the properties on the given object into the invariant culture’s resource bundle.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor)

Serializes a property on the given object.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeResource(IDesignerSerializationManager, String, Object)

Serializes the given object into a resource bundle using the given resource name.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeResourceInvariant(IDesignerSerializationManager, String, Object)

Serializes the given object into a resource bundle using the given resource name.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeToExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeToReferenceExpression(IDesignerSerializationManager, Object)

Obsolete. Serializes the specified value to a CodeDOM expression.(Inherited from CodeDomSerializer.)

System_CAPS_protmethodSerializeToResourceExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)

Serializes the given object into an expression appropriate for the invariant culture.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSetExpression(IDesignerSerializationManager, Object, CodeExpression)

Associates an object with an expression.(Inherited from CodeDomSerializerBase.)

System_CAPS_protmethodSetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)

Associates an object with an expression, optionally specifying a preset expression.(Inherited from CodeDomSerializerBase.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The CollectionCodeDomSerializer class can create either statements or expressions. If the object to serialize is an array, the CollectionCodeDomSerializer will create an expression and assign it to the statement in the current context stack. If the object is a collection with an AddRange or similar method, the CollectionCodeDomSerializer will create a statement that calls the method.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: