DelegatingEnumerable<T> Class
Helper class to serialize <see cref="T:System.Collections.Generic.IEnumerable`1" /> types by delegating them through a concrete implementation."/>.
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 | |
---|---|---|
DelegatingEnumerable<T>() | Initialize a DelegatingEnumerable. This constructor is necessary for DataContractSerializer to work. | |
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 | |
---|---|---|
Add | This method is not implemented but is required method for serialization to work. Do not use. | |
Equals | (Inherited from Object.) | |
GetEnumerator | Get the enumerator of the associated <see cref="T:System.Collections.Generic.IEnumerable`1" />. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.