CastArrayEnumeratorTFrom, TTo Structure

Enumerates the elements of a CastArrayTFrom, TTo, CastArray2DTFrom, TTo or CastArray3DTFrom, TTo instance.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public struct CastArrayEnumerator<TFrom, TTo> : IEnumerator<TTo>, 
	IEnumerator, IDisposable
where TFrom : struct, new()
where TTo : struct, new()
Inheritance
Object    ValueType    CastArrayEnumeratorTFrom, TTo
Implements
IEnumeratorTTo, IEnumerator, IDisposable

Type Parameters

TFrom
The element type of the actual underlying buffer.
TTo
The type of the enumerated elements.

Properties

Current Gets the element at the current position of the enumerator.

Methods

MoveNext Advances the enumerator to the next element of the collection.
Reset Sets the enumerator to its initial position, which is before the first element in the collection.

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
In Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also