Returns distinct elements from a sequence by using a specified selector function to project objects to compare.
Namespace: Breeze.Sharp.Core
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax
public static IEnumerable<TSource> Distinct<TSource, TResult>( this IEnumerable<TSource> source, Func<TSource, TResult> selector )
Parameters
- source
- Type: System.Collections.GenericIEnumerableTSource
- selector
- Type: SystemFuncTSource, TResult
Type Parameters
- TSource
- TResult
Return Value
Type: IEnumerableTSourceUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTSource. 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