DelegatingEnumerable<T> Class

 

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

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

Inheritance Hierarchy

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

Syntax

public sealed class DelegatingEnumerable<T> : IEnumerable<T>, 
    IEnumerable
generic<typename T>
public ref class DelegatingEnumerable sealed : IEnumerable<T>, 
    IEnumerable
[<Sealed>]
type DelegatingEnumerable<'T> = 
    class
        interface IEnumerable<'T>
        interface IEnumerable
    end
Public NotInheritable Class DelegatingEnumerable(Of T)
    Implements IEnumerable(Of T), IEnumerable

Type Parameters

  • T
    The interface implementing to proxy.

Constructors

Name Description
System_CAPS_pubmethod DelegatingEnumerable<T>()

Initialize a DelegatingEnumerable. This constructor is necessary for DataContractSerializer to work.

System_CAPS_pubmethod 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.

Methods

Name Description
System_CAPS_pubmethod Add(Object)

This method is not implemented but is required method for serialization to work. Do not use.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />.

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

System.Net.Http.Formatting Namespace

Return to top