IEnumerableExtensions::AsSerializable<T> Method (IEnumerable<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)

public:
generic<typename T>
where T : ref class
[ExtensionAttribute]
static IEnumerable<T>^ AsSerializable(
	IEnumerable<T>^ collection
)

Parameters

collection
Type: System.Collections.Generic::IEnumerable<T>^

The collection of type object.

Return Value

Type: System.Collections.Generic::IEnumerable<T>^

The API to allow an IEnumerable{T}.

Type Parameters

T

The type of the objects.

Return to top
Show: