SerializationInfoEnumerator Class

 

Provides a formatter-friendly mechanism for parsing the data in SerializationInfo. This class cannot be inherited.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

System.Object
  System.Runtime.Serialization.SerializationInfoEnumerator

<ComVisibleAttribute(True)>
Public NotInheritable Class SerializationInfoEnumerator
	Implements IEnumerator

NameDescription
System_CAPS_pubpropertyCurrent

Gets the item currently being examined.

System_CAPS_pubpropertyName

Gets the name for the item currently being examined.

System_CAPS_pubpropertyObjectType

Gets the type of the item currently being examined.

System_CAPS_pubpropertyValue

Gets the value of the item currently being examined.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodMoveNext()

Updates the enumerator to the next item.

System_CAPS_pubmethodReset()

Resets the enumerator to the first item.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIEnumerator.Current

Gets the current item in the collection.

The current class is a standard enumerator that parses over the values stored in SerializationInfo. Instead of recording the values, the SerializationInfoEnumerator keeps pointers to the member variables of the SerializationInfo that created it.

This class follows the IEnumerator mechanism.

The following code example shows how to use the FormatterServices class in order to properly serialize or deserialize an object where the base class does not implement ISerializable but the derived class does.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: