EnumerableBaseWrapperT, TBase Class |
Wrapping of an IEnumerableT of T to an IEnumerableT of TBase, under the assumption that T extends TBase.
This will make the enumerable available as having base class elements, without copying the content of the enumerable.
Namespace: DHI.Mike1D.Generic.Collections
public class EnumerableBaseWrapper<T, TBase> : IEnumerable<TBase>, IEnumerable where T : TBase
The EnumerableBaseWrapperT, TBase type exposes the following members.
Name | Description | |
---|---|---|
EnumerableBaseWrapperT, TBase |
Create a new wrapper object that wraps the provided enumerable
|
Name | Description | |
---|---|---|
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.) | |
GetEnumerator |
Returns an enumerator of TBase that iterates through the collection.
| |
GetHashCode | Serves as the default hash function. (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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |