System.Runtime.Serialization.SerializationInfoEnumerator Class

Assembly: Mscorlib.dll
Namespace: System.Runtime.Serialization
Summary
Provides a formatter-friendly mechanism for parsing the data in SerializationInfo. This class cannot be inherited.
C# Syntax:
public sealed class SerializationInfoEnumerator : IEnumerator
Remarks
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.

See also:
System.Runtime.Serialization Namespace | IEnumerator | SerializationInfo

System.Runtime.Serialization.SerializationInfoEnumerator Member List:

Public Properties
Current Read-only

Gets the item currently being examined.
Name Read-only

Gets the name for the item currently being examined.
ObjectType Read-only

Gets the type of the item currently being examined.
Value Read-only

Gets the value of the item currently being examined.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
MoveNext Updates the enumerator to the next item.
Reset Resets the enumerator to the first item.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Runtime.Serialization.SerializationInfoEnumerator Member Details

Property: Current (read-only)
Summary
Gets the item currently being examined.
C# Syntax:
public SerializationEntry Current {get;}
Exceptions
Exception Type Condition
InvalidOperationException The enumerator has not started enumerating items or has reached the end of the enumeration.

Return to top


Property: Name (read-only)
Summary
Gets the name for the item currently being examined.
C# Syntax:
public string Name {get;}
Exceptions
Exception Type Condition
InvalidOperationException The enumerator has not started enumerating items or has reached the end of the enumeration.

Return to top


Property: ObjectType (read-only)
Summary
Gets the type of the item currently being examined.
C# Syntax:
public Type ObjectType {get;}
Exceptions
Exception Type Condition
InvalidOperationException The enumerator has not started enumerating items or has reached the end of the enumeration.

Return to top


Property: Value (read-only)
Summary
Gets the value of the item currently being examined.
C# Syntax:
public object Value {get;}
Exceptions
Exception Type Condition
InvalidOperationException The enumerator has not started enumerating items or has reached the end of the enumeration.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~SerializationInfoEnumerator();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MoveNext()
Summary
Updates the enumerator to the next item.
C# Syntax:
public bool MoveNext();
Return Value:
true if a new element is found; otherwise, false.
Implements:
IEnumerator.MoveNext
Remarks
To initialize the enumerator, call SerializationInfoEnumerator.MoveNext and go through each item until you reach the last element.

Return to top


Method: Reset()
Summary
Resets the enumerator to the first item.
C# Syntax:
public void Reset();
Implements:
IEnumerator.Reset
Remarks
After calling this method, the SerializationInfoEnumerator.Current property will contain the first item in the current set of elements.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.