Breyta

Deila með


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
CodeDomSerializerBase
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)

Deserializes the given expression into an in-memory object.

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

Returns an instance of the given type.

DeserializePropertiesFromResources(IDesignerSerializationManager, Object, Attribute[])

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

DeserializeStatement(IDesignerSerializationManager, CodeStatement)

Deserializes a statement by interpreting and executing a CodeDOM statement.

Equals(Object)

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

(Inherited from Object)
GetAttributesFromTypeHelper(IDesignerSerializationManager, Type)

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

GetAttributesHelper(IDesignerSerializationManager, Object)

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

GetEventsHelper(IDesignerSerializationManager, Object, Attribute[])

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

GetExpression(IDesignerSerializationManager, Object)

Returns an expression for the given object.

GetHashCode()

Serves as the default hash function.

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

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

GetReflectionTypeFromTypeHelper(IDesignerSerializationManager, Type)

Gets a reflection type generated from type metadata.

GetReflectionTypeHelper(IDesignerSerializationManager, Object)

Gets a reflection type generated from object metadata.

GetSerializer(IDesignerSerializationManager, Object)

Locates a serializer for the given object value.

GetSerializer(IDesignerSerializationManager, Type)

Locates a serializer for the given type.

GetTargetFrameworkProvider(IServiceProvider, Object)

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

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUniqueName(IDesignerSerializationManager, Object)

Returns a unique name for the given object.

IsSerialized(IDesignerSerializationManager, Object, Boolean)

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

IsSerialized(IDesignerSerializationManager, Object)

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

MemberwiseClone()

Creates a shallow copy of the current Object.

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

Returns an expression representing the creation of the given object.

SerializeEvent(IDesignerSerializationManager, CodeStatementCollection, Object, EventDescriptor)

Serializes the given event into the given statement collection.

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

Serializes the specified events into the given statement collection.

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

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

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

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

SerializeProperty(IDesignerSerializationManager, CodeStatementCollection, Object, PropertyDescriptor)

Serializes a property on the given object.

SerializeResource(IDesignerSerializationManager, String, Object)

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

SerializeResourceInvariant(IDesignerSerializationManager, String, Object)

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

SerializeToExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.

SerializeToResourceExpression(IDesignerSerializationManager, Object, Boolean)

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

SerializeToResourceExpression(IDesignerSerializationManager, Object)

Serializes the given object into an expression.

SetExpression(IDesignerSerializationManager, Object, CodeExpression, Boolean)

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

SetExpression(IDesignerSerializationManager, Object, CodeExpression)

Associates an object with an expression.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also