CodeDomSerializerBase CodeDomSerializerBase CodeDomSerializerBase CodeDomSerializerBase Class

Definition

Provides a base class for CodeDomSerializer classes.

public ref class CodeDomSerializerBase abstract
public abstract class CodeDomSerializerBase
type CodeDomSerializerBase = class
Public MustInherit Class CodeDomSerializerBase
Inheritance
CodeDomSerializerBaseCodeDomSerializerBaseCodeDomSerializerBaseCodeDomSerializerBase
Derived

Remarks

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.

Methods

DeserializeExpression(IDesignerSerializationManager, String, CodeExpression) DeserializeExpression(IDesignerSerializationManager, String, CodeExpression) DeserializeExpression(IDesignerSerializationManager, String, CodeExpression) DeserializeExpression(IDesignerSerializationManager, String, CodeExpression)

Deserializes the given expression into an in-memory object.

DeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean) DeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean) DeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean) DeserializeInstance(IDesignerSerializationManager, Type, Object[], String, Boolean)

Returns an instance of the given type.

DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[]) DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[]) DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[]) DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[])

Deserializes properties on the given object from the invariant culture's resource bundle.

DeserializeStatement(IDesignerSerializationManager, CodeStatement) DeserializeStatement(IDesignerSerializationManager, CodeStatement) DeserializeStatement(IDesignerSerializationManager, CodeStatement) DeserializeStatement(IDesignerSerializationManager, CodeStatement)

Deserializes a statement by interpreting and executing a CodeDOM statement.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetAttributesFromTypeHelper(IDesignerSerializationManager, Type) GetAttributesFromTypeHelper(IDesignerSerializationManager, Type) GetAttributesFromTypeHelper(IDesignerSerializationManager, Type) GetAttributesFromTypeHelper(IDesignerSerializationManager, Type)

Gets a collection of attributes as defined in the project's target version of the .NET Framework.

GetAttributesHelper(IDesignerSerializationManager, Object) GetAttributesHelper(IDesignerSerializationManager, Object) GetAttributesHelper(IDesignerSerializationManager, Object) GetAttributesHelper(IDesignerSerializationManager, Object)

Gets a collection of attributes as defined in the project's target version of the .NET Framework.

GetEventsHelper(IDesignerSerializationManager, Object, Attribute[]) GetEventsHelper(IDesignerSerializationManager, Object, Attribute[]) GetEventsHelper(IDesignerSerializationManager, Object, Attribute[]) GetEventsHelper(IDesignerSerializationManager, Object, Attribute[])

Gets a collection of events as defined in the project's target version of the .NET Framework.

GetExpression(IDesignerSerializationManager, Object) GetExpression(IDesignerSerializationManager, Object) GetExpression(IDesignerSerializationManager, Object) GetExpression(IDesignerSerializationManager, Object)

Returns an expression for the given object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPropertiesHelper(IDesignerSerializationManager, Object, Attribute[]) GetPropertiesHelper(IDesignerSerializationManager, Object, Attribute[]) GetPropertiesHelper(IDesignerSerializationManager, Object, Attribute[]) GetPropertiesHelper(IDesignerSerializationManager, Object, Attribute[])

Gets a collection of properties as defined in the project's target version of the .NET Framework.

GetReflectionTypeFromTypeHelper(IDesignerSerializationManager, Type) GetReflectionTypeFromTypeHelper(IDesignerSerializationManager, Type) GetReflectionTypeFromTypeHelper(IDesignerSerializationManager, Type) GetReflectionTypeFromTypeHelper(IDesignerSerializationManager, Type)

Gets a reflection type generated from type metadata.

GetReflectionTypeHelper(IDesignerSerializationManager, Object) GetReflectionTypeHelper(IDesignerSerializationManager, Object) GetReflectionTypeHelper(IDesignerSerializationManager, Object) GetReflectionTypeHelper(IDesignerSerializationManager, Object)

Gets a reflection type generated from object metadata.

GetSerializer(IDesignerSerializationManager, Object) GetSerializer(IDesignerSerializationManager, Object) GetSerializer(IDesignerSerializationManager, Object) GetSerializer(IDesignerSerializationManager, Object)

Locates a serializer for the given object value.

GetSerializer(IDesignerSerializationManager, Type) GetSerializer(IDesignerSerializationManager, Type) GetSerializer(IDesignerSerializationManager, Type) GetSerializer(IDesignerSerializationManager, Type)

Locates a serializer for the given type.

GetTargetFrameworkProvider(IServiceProvider, Object) GetTargetFrameworkProvider(IServiceProvider, Object) GetTargetFrameworkProvider(IServiceProvider, Object) GetTargetFrameworkProvider(IServiceProvider, Object)

Gets a TypeDescriptionProvider that is aware of the target version of the .NET Framework, for use in type filtering.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUniqueName(IDesignerSerializationManager, Object) GetUniqueName(IDesignerSerializationManager, Object) GetUniqueName(IDesignerSerializationManager, Object) GetUniqueName(IDesignerSerializationManager, Object)

Returns a unique name for the given object.

IsSerialized(IDesignerSerializationManager, Object) IsSerialized(IDesignerSerializationManager, Object) IsSerialized(IDesignerSerializationManager, Object) IsSerialized(IDesignerSerializationManager, Object)

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

IsSerialized(IDesignerSerializationManager, Object, Boolean) IsSerialized(IDesignerSerializationManager, Object, Boolean) IsSerialized(IDesignerSerializationManager, Object, Boolean) IsSerialized(IDesignerSerializationManager, Object, Boolean)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SerializeCreationExpression(IDesignerSerializationManager, Object, Boolean) SerializeCreationExpression(IDesignerSerializationManager, Object, Boolean) SerializeCreationExpression(IDesignerSerializationManager, Object, Boolean) SerializeCreationExpression(IDesignerSerializationManager, Object, Boolean)

Returns an expression representing the creation of the given object.

SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor) SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor) SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor) SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor)

Serializes the given event into the given statement collection.

SerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeEvents(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the specified events into the given statement collection.

SerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializeProperties(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the properties on the given object into the given statement collection.

SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[]) SerializePropertiesToResources(IDesignerSerializationManager, CodeStatementCollection, Object, Attribute[])

Serializes the properties on the given object into the invariant culture's resource bundle.

SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor) SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor) SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor) SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor)

Serializes a property on the given object.

SerializeResource(IDesignerSerializationManager, String, Object) SerializeResource(IDesignerSerializationManager, String, Object) SerializeResource(IDesignerSerializationManager, String, Object) SerializeResource(IDesignerSerializationManager, String, Object)

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

SerializeResourceInvariant(IDesignerSerializationManager, String, Object) SerializeResourceInvariant(IDesignerSerializationManager, String, Object) SerializeResourceInvariant(IDesignerSerializationManager, String, Object) SerializeResourceInvariant(IDesignerSerializationManager, String, Object)

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

SerializeToExpression(IDesignerSerializationManager, Object) SerializeToExpression(IDesignerSerializationManager, Object) SerializeToExpression(IDesignerSerializationManager, Object) SerializeToExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.

SerializeToResourceExpression(IDesignerSerializationManager, Object) SerializeToResourceExpression(IDesignerSerializationManager, Object) SerializeToResourceExpression(IDesignerSerializationManager, Object) SerializeToResourceExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.

SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean) SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean) SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean) SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)

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

SetExpression(IDesignerSerializationManager, Object, CodeExpression) SetExpression(IDesignerSerializationManager, Object, CodeExpression) SetExpression(IDesignerSerializationManager, Object, CodeExpression) SetExpression(IDesignerSerializationManager, Object, CodeExpression)

Associates an object with an expression.

SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean) SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean) SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean) SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)

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

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also