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.

  NameDescription
Public methodTypeCodeDomSerializerInitializes a new instance of the TypeCodeDomSerializer class.
Top

  NameDescription
Public methodDeserializeDeserializes the given type declaration.
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.)
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 methodGetInitializeMethodReturns the method where statements used to serialize a member are stored.
Protected methodGetInitializeMethodsReturns an array of methods to be interpreted during deserialization.
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 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.)
Public methodSerializeSerializes the object root by creating a new type declaration that defines root.
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.)
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 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 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.5.2, 4.5.1, 4.5, 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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft