Creates an IList of EntityStateSet based on a source IEnumerable of entities

Namespace: RiaServicesContrib.Extensions
Assembly: RiaServicesContrib.EntityTools (in RiaServicesContrib.EntityTools.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static IList<EntityStateSet> Export<T>(
	this IEnumerable<T> collection
)
where T : new(), Entity
Visual Basic
<ExtensionAttribute> _
Public Shared Function Export(Of T As {New, Entity}) ( _
	collection As IEnumerable(Of T) _
) As IList(Of EntityStateSet)
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : gcnew(), Entity
static IList<EntityStateSet^>^ Export(
	IEnumerable<T>^ collection
)

Parameters

collection
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
Source collection of entities

Type Parameters

T
Entity Type

Return Value

IList of EntityStateSet

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also