|
CollectionExtensionsMinorityT(IEnumerableT, Boolean, IEqualityComparerT) Method
|
Returns the minority value in the collection, or default type value if no item represents the minority.
Namespace: GSF.CollectionsAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.322-beta+23e5f0c4a5ec41c0eb4a07dfa487a9d04edc053e
SyntaxJavaScript does not support generic types or methods.
View SourceParameters
- source IEnumerableT
- An enumeration over which to find the minority element.
- forwardSearch Boolean (Optional)
- true to search forward in source; otherwise false to search backwards.
- comparer IEqualityComparerT (Optional)
- The IEqualityComparerT implementation to use when comparing keys, or null to use the default comparer for the type of the key.
Type Parameters
- T
- Type of elements in the source.
Return Value
TThe minority value in the collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. 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