SerializationInfoExtensionsToEnumerable Method

Gets a lazy-evaluating IEnumerableT wrapper for the specified SerializationInfo.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static IEnumerable<SerializationEntry> ToEnumerable(
	this SerializationInfo info
)

Parameters

info  SerializationInfo
The SerializationInfo to be converted.

Return Value

IEnumerableSerializationEntry
An IEnumerableT instance that contains the SerializationEntry items of the provided SerializationInfo.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SerializationInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The returned instance has a lazy enumerator. Adding and removing elements during enumerating the SerializationInfo can lead to an inconsistent state (it tolerates calling the ReplaceValue though).

  Note

The enumerator of the returned collection does not support the IEnumerator.Reset method.

See Also