Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Function AsQueryable ( _
source As IEnumerable _
) As IQueryable
Dim source As IEnumerable
Dim returnValue As IQueryable
returnValue = source.AsQueryable()
public static IQueryable AsQueryable(
this IEnumerable source
)
[ExtensionAttribute]
public:
static IQueryable^ AsQueryable(
IEnumerable^ source
)
/** @attribute ExtensionAttribute */
public static IQueryable AsQueryable(
IEnumerable source
)
public static function AsQueryable(
source : IEnumerable
) : IQueryable
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable. 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).