Partager via


DelegatingEnumerable<T> Class

Helper class to serialize <see cref="T:System.Collections.Generic.IEnumerable`1" /> types by delegating them through a concrete implementation."/&gt;.

Inheritance Hierarchy

System.Object
  System.Net.Http.Formatting.DelegatingEnumerable<T>

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public NotInheritable Class DelegatingEnumerable(Of T) _
    Implements IEnumerable(Of T), IEnumerable
'Usage
Dim instance As DelegatingEnumerable(Of T)
public sealed class DelegatingEnumerable<T> : IEnumerable<T>, 
    IEnumerable
generic<typename T>
public ref class DelegatingEnumerable sealed : IEnumerable<T>, 
    IEnumerable
[<SealedAttribute>]
type DelegatingEnumerable<'T> =  
    class
        interface IEnumerable<'T>
        interface IEnumerable
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The interface implementing to proxy.

The DelegatingEnumerable<T> type exposes the following members.

Constructors

  Name Description
Public method DelegatingEnumerable<T>() Initialize a DelegatingEnumerable. This constructor is necessary for DataContractSerializer to work.
Public method DelegatingEnumerable<T>(IEnumerable<T>) Initialize a DelegatingEnumerable with an <see cref="T:System.Collections.Generic.IEnumerable`1" />. This is a helper class to proxy <see cref="T:System.Collections.Generic.IEnumerable`1" /> interfaces for XmlSerializer.

Top

Methods

  Name Description
Public method Add This method is not implemented but is required method for serialization to work. Do not use.
Public method Equals (Inherited from Object.)
Public method GetEnumerator Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Net.Http.Formatting Namespace