SerializationInfo.GetEnumerator Method ()


Returns a SerializationInfoEnumerator used to iterate through the name-value pairs in the SerializationInfo store.

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

public SerializationInfoEnumerator GetEnumerator()

Return Value

Type: System.Runtime.Serialization.SerializationInfoEnumerator

A SerializationInfoEnumerator for parsing the name-value pairs contained in the SerializationInfo store.

This function will most often be used by formatters that need to enumerate through the values before writing them out to the stream.

.NET Framework
Available since 1.1
Return to top