Export (0) Print
Expand All

CollectionCodeDomSerializer Class

Serializes collections.

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

public class CollectionCodeDomSerializer : CodeDomSerializer

The CollectionCodeDomSerializer type exposes the following members.

  NameDescription
Public methodCollectionCodeDomSerializerInitializes a new instance of the CollectionCodeDomSerializer class.
Top

  NameDescription
Public methodDeserializeDeserializes the specified serialized CodeDOM object into an object. (Inherited from CodeDomSerializer.)
Protected methodDeserializeExpressionDeserializes the given expression into an in-memory object. (Inherited from CodeDomSerializerBase.)
Protected methodDeserializeInstanceReturns an instance of the given type. (Inherited from CodeDomSerializerBase.)
Protected methodDeserializePropertiesFromResourcesDeserializes properties on the given object from the invariant culture’s resource bundle. (Inherited from CodeDomSerializerBase.)
Protected methodDeserializeStatementDeserializes a statement by interpreting and executing a CodeDOM statement. (Inherited from CodeDomSerializerBase.)
Protected methodDeserializeStatementToInstanceDeserializes a single statement. (Inherited from CodeDomSerializer.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodGetExpressionReturns an expression for the given object. (Inherited from CodeDomSerializerBase.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodGetSerializer(IDesignerSerializationManager, Object)Locates a serializer for the given object value. (Inherited from CodeDomSerializerBase.)
Protected methodGetSerializer(IDesignerSerializationManager, Type)Locates a serializer for the given type. (Inherited from CodeDomSerializerBase.)
Public methodGetTargetComponentNameDetermines which statement group the given statement should belong to. (Inherited from CodeDomSerializer.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUniqueNameReturns a unique name for the given object. (Inherited from CodeDomSerializerBase.)
Protected methodIsSerialized(IDesignerSerializationManager, Object)Returns a value indicating whether the given object has been serialized. (Inherited from CodeDomSerializerBase.)
Protected methodIsSerialized(IDesignerSerializationManager, Object, Boolean)Returns a value indicating whether the given object has been serialized, optionally considering preset expressions. (Inherited from CodeDomSerializerBase.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMethodSupportsSerializationVerifies serialization support by the method.
Public methodSerializeSerializes the given collection into a CodeDOM object. (Overrides CodeDomSerializer.Serialize(IDesignerSerializationManager, Object).)
Public methodSerializeAbsoluteSerializes the given object, accounting for default values. (Inherited from CodeDomSerializer.)
Protected methodSerializeCollectionSerializes the given collection.
Protected methodSerializeCreationExpressionReturns an expression representing the creation of the given object. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeEventSerializes the given event into the given statement collection. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeEventsSerializes the specified events into the given statement collection. (Inherited from CodeDomSerializerBase.)
Public methodSerializeMemberSerializes the given member on the given object. (Inherited from CodeDomSerializer.)
Public methodSerializeMemberAbsoluteSerializes the given member, accounting for default values. (Inherited from CodeDomSerializer.)
Protected methodSerializePropertiesSerializes the properties on the given object into the given statement collection. (Inherited from CodeDomSerializerBase.)
Protected methodSerializePropertiesToResourcesSerializes the properties on the given object into the invariant culture’s resource bundle. (Inherited from CodeDomSerializerBase.)
Protected methodSerializePropertySerializes a property on the given object. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeResourceSerializes the given object into a resource bundle using the given resource name. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeResourceInvariantSerializes the given object into a resource bundle using the given resource name. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeToExpressionSerializes the given object into an expression. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeToReferenceExpression Obsolete. Serializes the specified value to a CodeDOM expression. (Inherited from CodeDomSerializer.)
Protected methodSerializeToResourceExpression(IDesignerSerializationManager, Object)Serializes the given object into an expression. (Inherited from CodeDomSerializerBase.)
Protected methodSerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)Serializes the given object into an expression appropriate for the invariant culture. (Inherited from CodeDomSerializerBase.)
Protected methodSetExpression(IDesignerSerializationManager, Object, CodeExpression)Associates an object with an expression. (Inherited from CodeDomSerializerBase.)
Protected methodSetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)Associates an object with an expression, optionally specifying a preset expression. (Inherited from CodeDomSerializerBase.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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