Uredi

Deli z drugimi prek


CollectionCodeDomSerializer Class

Definition

Serializes collections.

public ref class CollectionCodeDomSerializer : System::ComponentModel::Design::Serialization::CodeDomSerializer
public class CollectionCodeDomSerializer : System.ComponentModel.Design.Serialization.CodeDomSerializer
type CollectionCodeDomSerializer = class
    inherit CodeDomSerializer
Public Class CollectionCodeDomSerializer
Inherits CodeDomSerializer
Inheritance
CollectionCodeDomSerializer

Remarks

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.

Constructors

CollectionCodeDomSerializer()

Initializes a new instance of the CollectionCodeDomSerializer class.

Methods

Deserialize(IDesignerSerializationManager, Object)

Deserializes the specified serialized CodeDOM object into an object.

(Inherited from CodeDomSerializer)
DeserializeExpression(IDesignerSerializationManager, String, CodeExpression)

Deserializes the specified expression.

(Inherited from CodeDomSerializer)
DeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean)

Returns an instance of the given type.

(Inherited from CodeDomSerializerBase)
DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[])

Deserializes the properties of the specified object that match the specified filter, if a filter was specified.

(Inherited from CodeDomSerializer)
DeserializeStatement(IDesignerSerializationManager, CodeStatement)

Deserializes the specified statement.

(Inherited from CodeDomSerializer)
DeserializeStatementToInstance(IDesignerSerializationManager, CodeStatement)

Deserializes a single statement.

(Inherited from CodeDomSerializer)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExpression(IDesignerSerializationManager, Object)

Returns an expression for the given object.

(Inherited from CodeDomSerializerBase)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetSerializer(IDesignerSerializationManager, Object)

Locates a serializer for the given object value.

(Inherited from CodeDomSerializerBase)
GetSerializer(IDesignerSerializationManager, Type)

Locates a serializer for the given type.

(Inherited from CodeDomSerializerBase)
GetTargetComponentName(CodeStatement, CodeExpression, Type)

Determines which statement group the given statement should belong to.

(Inherited from CodeDomSerializer)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUniqueName(IDesignerSerializationManager, Object)

Returns a unique name for the given object.

(Inherited from CodeDomSerializerBase)
IsSerialized(IDesignerSerializationManager, Object, Boolean)

Returns a value indicating whether the given object has been serialized, optionally considering preset expressions.

(Inherited from CodeDomSerializerBase)
IsSerialized(IDesignerSerializationManager, Object)

Returns a value indicating whether the given object has been serialized.

(Inherited from CodeDomSerializerBase)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MethodSupportsSerialization(MethodInfo)

Verifies serialization support by the method.

Serialize(IDesignerSerializationManager, Object)

Serializes the given collection into a CodeDOM object.

SerializeAbsolute(IDesignerSerializationManager, Object)

Serializes the given object, accounting for default values.

(Inherited from CodeDomSerializer)
SerializeCollection(IDesignerSerializationManager, CodeExpression, Type, ICollection, ICollection)

Serializes the given collection.

SerializeCreationExpression(IDesignerSerializationManager, Object, Boolean)

Returns an expression representing the creation of the given object.

(Inherited from CodeDomSerializerBase)
SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor)

Serializes the given event into the given statement collection.

(Inherited from CodeDomSerializerBase)
SerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes all events of the specified object.

(Inherited from CodeDomSerializer)
SerializeMember(IDesignerSerializationManager, Object, MemberDescriptor)

Serializes the given member on the given object.

(Inherited from CodeDomSerializer)
SerializeMemberAbsolute(IDesignerSerializationManager, Object, MemberDescriptor)

Serializes the given member, accounting for default values.

(Inherited from CodeDomSerializer)
SerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes all properties for the specified object, using the specified filter.

(Inherited from CodeDomSerializer)
SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the specified properties to resources.

(Inherited from CodeDomSerializer)
SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor)

Serializes a property on the given object.

(Inherited from CodeDomSerializerBase)
SerializeResource(IDesignerSerializationManager, String, Object)

Serializes the given object into a resource bundle using the given resource name.

(Inherited from CodeDomSerializer)
SerializeResourceInvariant(IDesignerSerializationManager, String, Object)

Serializes the given object into a resource bundle using the given resource name using invariant culture.

(Inherited from CodeDomSerializer)
SerializeToExpression(IDesignerSerializationManager, Object)

Serializes the specified value to a CodeDOM expression.

(Inherited from CodeDomSerializer)
SerializeToReferenceExpression(IDesignerSerializationManager, Object)
Obsolete.
Obsolete.

Serializes the specified value to a CodeDOM expression.

(Inherited from CodeDomSerializer)
SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)

Serializes the given object into an expression appropriate for the invariant culture.

(Inherited from CodeDomSerializerBase)
SerializeToResourceExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.

(Inherited from CodeDomSerializerBase)
SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)

Associates an object with an expression, optionally specifying a preset expression.

(Inherited from CodeDomSerializerBase)
SetExpression(IDesignerSerializationManager, Object, CodeExpression)

Associates an object with an expression.

(Inherited from CodeDomSerializerBase)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also