IEnumerableExtensions.AsSerializable(Of T) Method (IEnumerable(Of T))

 

Convenience API to allow an IEnumerable{T} (such as returned by Linq2Sql) to be serialized by DataContractSerilizer.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

<ExtensionAttribute>
Public Shared Function AsSerializable(Of T As Class) (
	collection As IEnumerable(Of T)
) As IEnumerable(Of T)

Parameters

collection
Type: System.Collections.Generic.IEnumerable(Of T)

The collection of type object.

Return Value

Type: System.Collections.Generic.IEnumerable(Of T)

The API to allow an IEnumerable{T}.

Type Parameters

T

The type of the objects.

Return to top
Show: