IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > EnumerableFns Class : Distinct<TSource,TResult> Method |
'Declaration
<ExtensionAttribute()> Public Shared Function Distinct (Of TSource,TResult)( _ ByVal source As IEnumerable(Of TSource), _ ByVal selector As Func(Of TSource,TResult) _ ) As IEnumerable(Of TSource)
'Usage
Dim source As IEnumerable(Of TSource) Dim selector As Func(Of TSource,TResult) Dim value As IEnumerable(Of TSource) value = EnumerableFns.Distinct(Of TSource, TResult)(source, selector)
[Extension()] public static IEnumerable<TSource> Distinct<TSource,TResult>( IEnumerable<TSource> source, Func<TSource,TResult> selector )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2