DelegatingEnumerable<TWrapped,TDeclared> Class

Definition

Serializes IEnumerable<T> types by delegating them through a concrete implementation.

generic <typename TWrapped, typename TDeclared>
public ref class DelegatingEnumerable : System::Collections::Generic::IEnumerable<TWrapped>
public class DelegatingEnumerable<TWrapped,TDeclared> : System.Collections.Generic.IEnumerable<TWrapped>
type DelegatingEnumerable<'Wrapped, 'Declared> = class
    interface seq<'Wrapped>
    interface IEnumerable
Public Class DelegatingEnumerable(Of TWrapped, TDeclared)
Implements IEnumerable(Of TWrapped)

Type Parameters

TWrapped

The wrapping or original type of the IEnumerable<T> to proxy.

TDeclared

The type parameter of the original IEnumerable<T> to proxy.

Inheritance
DelegatingEnumerable<TWrapped,TDeclared>
Implements

Constructors

DelegatingEnumerable<TWrapped,TDeclared>()

Initializes a DelegatingEnumerable<TWrapped,TDeclared>.

DelegatingEnumerable<TWrapped,TDeclared>(IEnumerable<TDeclared>, IWrapperProvider)

Initializes a DelegatingEnumerable<TWrapped,TDeclared> with the original IEnumerable<T> and the wrapper provider for wrapping individual elements.

Methods

Add(Object)

The serializer requires every type it encounters can be serialized and deserialized. This type will never be used for deserialization, but we are required to implement the add method so that the type can be serialized. This will never be called.

GetEnumerator()

Gets a delegating enumerator of the original IEnumerable<T> source which is being wrapped.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets a delegating enumerator of the original IEnumerable<T> source which is being wrapped.

Applies to