This topic has not yet been rated - Rate this topic

TypeCodeDomSerializer Class

Serializes an object to a new type.

Namespace:  System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)
public class TypeCodeDomSerializer : CodeDomSerializerBase

The TypeCodeDomSerializer type exposes the following members.

  Name Description
Public method TypeCodeDomSerializer Initializes a new instance of the TypeCodeDomSerializer class.
Top
  Name Description
Public method Deserialize Deserializes the given type declaration.
Protected method DeserializeExpression Deserializes the given expression into an in-memory object. (Inherited from CodeDomSerializerBase.)
Protected method DeserializeInstance Returns an instance of the given type. (Inherited from CodeDomSerializerBase.)
Protected method DeserializePropertiesFromResources Deserializes properties on the given object from the invariant culture’s resource bundle. (Inherited from CodeDomSerializerBase.)
Protected method DeserializeStatement Deserializes a statement by interpreting and executing a CodeDOM statement. (Inherited from CodeDomSerializerBase.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetExpression Returns an expression for the given object. (Inherited from CodeDomSerializerBase.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetInitializeMethod Returns the method where statements used to serialize a member are stored.
Protected method GetInitializeMethods Returns an array of methods to be interpreted during deserialization.
Protected method GetSerializer(IDesignerSerializationManager, Object) Locates a serializer for the given object value. (Inherited from CodeDomSerializerBase.)
Protected method GetSerializer(IDesignerSerializationManager, Type) Locates a serializer for the given type. (Inherited from CodeDomSerializerBase.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUniqueName Returns a unique name for the given object. (Inherited from CodeDomSerializerBase.)
Protected method IsSerialized(IDesignerSerializationManager, Object) Returns a value indicating whether the given object has been serialized. (Inherited from CodeDomSerializerBase.)
Protected method IsSerialized(IDesignerSerializationManager, Object, Boolean) Returns a value indicating whether the given object has been serialized, optionally considering preset expressions. (Inherited from CodeDomSerializerBase.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Serialize Serializes the object root by creating a new type declaration that defines root.
Protected method SerializeCreationExpression Returns an expression representing the creation of the given object. (Inherited from CodeDomSerializerBase.)
Protected method SerializeEvent Serializes the given event into the given statement collection. (Inherited from CodeDomSerializerBase.)
Protected method SerializeEvents Serializes the specified events into the given statement collection. (Inherited from CodeDomSerializerBase.)
Protected method SerializeProperties Serializes the properties on the given object into the given statement collection. (Inherited from CodeDomSerializerBase.)
Protected method SerializePropertiesToResources Serializes the properties on the given object into the invariant culture’s resource bundle. (Inherited from CodeDomSerializerBase.)
Protected method SerializeProperty Serializes a property on the given object. (Inherited from CodeDomSerializerBase.)
Protected method SerializeResource Serializes the given object into a resource bundle using the given resource name. (Inherited from CodeDomSerializerBase.)
Protected method SerializeResourceInvariant Serializes the given object into a resource bundle using the given resource name. (Inherited from CodeDomSerializerBase.)
Protected method SerializeToExpression Serializes the given object into an expression. (Inherited from CodeDomSerializerBase.)
Protected method SerializeToResourceExpression(IDesignerSerializationManager, Object) Serializes the given object into an expression. (Inherited from CodeDomSerializerBase.)
Protected method SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean) Serializes the given object into an expression appropriate for the invariant culture. (Inherited from CodeDomSerializerBase.)
Protected method SetExpression(IDesignerSerializationManager, Object, CodeExpression) Associates an object with an expression. (Inherited from CodeDomSerializerBase.)
Protected method SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean) Associates an object with an expression, optionally specifying a preset expression. (Inherited from CodeDomSerializerBase.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

The TypeCodeDomSerializer class performs the same tasks as a CodeDomSerializer, but serializing an object through this class defines a new type.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ