Export (0) Print
Expand All

CodeDomSerializerBase Class

Provides a base class for CodeDomSerializer classes.

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

public abstract class CodeDomSerializerBase

The CodeDomSerializerBase type exposes the following members.

  NameDescription
Protected methodDeserializeExpressionDeserializes the given expression into an in-memory object.
Protected methodDeserializeInstanceReturns an instance of the given type.
Protected methodDeserializePropertiesFromResourcesDeserializes properties on the given object from the invariant culture’s resource bundle.
Protected methodDeserializeStatementDeserializes a statement by interpreting and executing a CodeDOM statement.
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 methodStatic memberGetAttributesFromTypeHelperGets a collection of attributes as defined in the project's target version of the .NET Framework.
Protected methodStatic memberGetAttributesHelperGets a collection of attributes as defined in the project's target version of the .NET Framework.
Protected methodStatic memberGetEventsHelperGets a collection of events as defined in the project's target version of the .NET Framework.
Protected methodGetExpressionReturns an expression for the given object.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Protected methodStatic memberGetPropertiesHelperGets a collection of properties as defined in the project's target version of the .NET Framework.
Protected methodStatic memberGetReflectionTypeFromTypeHelperGets a reflection type generated from type metadata.
Protected methodStatic memberGetReflectionTypeHelperGets a reflection type generated from object metadata.
Protected methodGetSerializer(IDesignerSerializationManager, Object)Locates a serializer for the given object value.
Protected methodGetSerializer(IDesignerSerializationManager, Type)Locates a serializer for the given type.
Protected methodStatic memberGetTargetFrameworkProviderGets a TypeDescriptionProvider that is aware of the target version of the .NET Framework, for use in type filtering.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUniqueNameReturns a unique name for the given object.
Protected methodIsSerialized(IDesignerSerializationManager, Object)Returns a value indicating whether the given object has been serialized.
Protected methodIsSerialized(IDesignerSerializationManager, Object, Boolean)Returns a value indicating whether the given object has been serialized, optionally considering preset expressions.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSerializeCreationExpressionReturns an expression representing the creation of the given object.
Protected methodSerializeEventSerializes the given event into the given statement collection.
Protected methodSerializeEventsSerializes the specified events into the given statement collection.
Protected methodSerializePropertiesSerializes the properties on the given object into the given statement collection.
Protected methodSerializePropertiesToResourcesSerializes the properties on the given object into the invariant culture’s resource bundle.
Protected methodSerializePropertySerializes a property on the given object.
Protected methodSerializeResourceSerializes the given object into a resource bundle using the given resource name.
Protected methodSerializeResourceInvariantSerializes the given object into a resource bundle using the given resource name.
Protected methodSerializeToExpressionSerializes the given object into an expression.
Protected methodSerializeToResourceExpression(IDesignerSerializationManager, Object)Serializes the given object into an expression.
Protected methodSerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)Serializes the given object into an expression appropriate for the invariant culture.
Protected methodSetExpression(IDesignerSerializationManager, Object, CodeExpression)Associates an object with an expression.
Protected methodSetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)Associates an object with an expression, optionally specifying a preset expression.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The CodeDomSerializerBase class is used as a shared base between the CodeDomSerializer and TypeCodeDomSerializer classes. Public CodeDomSerializer classes derive from the CodeDomSerializerBase class. Each public class defines its own public API. The CodeDomSerializerBase class defines no public API, but does offer a multitude of utility methods that can be used to aid the serialization process.

.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.
Show:
© 2014 Microsoft