AllObjectsExtensionCountT Method |
Override to improve performance over IEnumerable LINQ extension
Namespace:
VelocityDb
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public static int Count<T>(
this AllObjects<T> sourceCollection
)
<ExtensionAttribute>
Public Shared Function Count(Of T) (
sourceCollection As AllObjects(Of T)
) As Integer
public:
[ExtensionAttribute]
generic<typename T>
static int Count(
AllObjects<T>^ sourceCollection
)
[<ExtensionAttribute>]
static member Count :
sourceCollection : AllObjects<'T> -> int
Parameters
- sourceCollection
- Type: VelocityDbAllObjectsT
the collection
Type Parameters
- T
- key type
Return Value
Type:
Int32Size of the collection
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AllObjectsT. 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).
See Also