QueryableExtensionsToIList Method |
Creates a IListT from an IQueryable where T is ElementType.
Namespace: Kettic.AspNet.Data.ExtensionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic static IList ToIList(
this IQueryable source
)
<ExtensionAttribute>
Public Shared Function ToIList (
source As IQueryable
) As IList
public:
[ExtensionAttribute]
static IList^ ToIList(
IQueryable^ source
)
static member ToIList :
source : IQueryable -> IList
Parameters
- source
- Type: System.LinqIQueryable
The IQueryable to create a ListT from.
Return Value
Type:
IList
A
ListT that contains elements from the input sequence.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IQueryable. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExceptionsException | Condition |
---|
ArgumentNullException | source is null.
|
See Also