EnumeratorBaseWrapperT, TBase Class |
Wrapping of an IEnumeratorT of T to an IEnumeratorT of TBase, under the assumption that T extends TBase.
This will make the enumerator available as having base class elements, without copying the content of the enumerator.
Namespace: DHI.Mike1D.Generic.Collections
public class EnumeratorBaseWrapper<T, TBase> : IEnumerator<TBase>, IDisposable, IEnumerator where T : TBase
The EnumeratorBaseWrapperT, TBase type exposes the following members.
| Name | Description | |
|---|---|---|
| EnumeratorBaseWrapperT, TBase |
Create a new wrapper object that wraps the provided enumerator
|
| Name | Description | |
|---|---|---|
| Current | Gets the element in the collection at the current position of the enumerator. |
| Name | Description | |
|---|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| 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. | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |