IEnumerableExtensions::AsSerializable<T> Method (IEnumerable<T>^)
Convenience API to allow an IEnumerable{T} (such as returned by Linq2Sql) to be serialized by DataContractSerilizer.
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.
Type Parameters
- T
The type of the objects.
Show: