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.
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.
Type Parameters
- T
The type of the objects.
Show: