Export (0) Print
Expand All

MemberCodeDomSerializer Class

Provides the base class for serializing a reflection primitive within the object graph.

System.Object
  System.ComponentModel.Design.Serialization.CodeDomSerializerBase
    System.ComponentModel.Design.Serialization.MemberCodeDomSerializer

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

public abstract class MemberCodeDomSerializer : CodeDomSerializerBase

The MemberCodeDomSerializer type exposes the following members.

  NameDescription
Protected methodMemberCodeDomSerializerInitializes a new instance of the MemberCodeDomSerializer class.
Top

  NameDescription
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 a hash function for a particular type. (Inherited from Object.)
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 given member descriptor on the given value to a statement collection.
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 methodShouldSerializeDetermines if the given member should be serialized.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The MemberCodeDomSerializer class is a "meta" serializer; that is, is a serializer that does not serialize part of the object graph, but instead serializes a reflection primitive within the object graph. For example, a MemberCodeDomSerializer would be associated with a PropertyDescriptor in order for it to serialize a property. MemberCodeDomSerializer objects enable constructs, such as properties and events, to be logical, rather than requiring them to have a physical backing in code.

Unlike CodeDomSerializer classes, MemberCodeDomSerializer objects must be able to deserialize.

.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.

Community Additions

ADD
Show:
© 2014 Microsoft