Version

FlatDataSource Constructor(IEnumerable,Type)

Creates a new instance of the class.
Syntax
'Declaration
 
Public Function New( _
   ByVal itemSource As IEnumerable, _
   Optional ByVal itemType As Type _
)
public FlatDataSource( 
   IEnumerable itemSource,
   Type itemType
)

Parameters

itemSource
An IEnumerable implementation which provides the data items for this instance. Must not contain null references or objects of disparate types.
itemType
Optional parameter defining the data type of the items in the itemSource. If null, type is obtained from the first item in the itemSource.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also