Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Shared Function OrderBy (Of TSource,TKey)( _ ByVal source As IEnumerable(Of TSource), _ ByVal keySelector As Func(Of TSource,TKey), _ ByVal comparer As Comparison(Of TKey) _ ) As IOrderedEnumerable(Of TSource) |
Visual Basic (Usage) | ![]() |
---|---|
Dim source As IEnumerable(Of TSource) Dim keySelector As Func(Of TSource,TKey) Dim comparer As Comparison(Of TKey) Dim value As IOrderedEnumerable(Of TSource) value = LinqExtensions.OrderBy(Of TSource, TKey)(source, keySelector, comparer) |
C# | |
---|---|
[Extension()] public static IOrderedEnumerable<TSource> OrderBy<TSource,TKey>( IEnumerable<TSource> source, Func<TSource,TKey> keySelector, Comparison<TKey> comparer ) |
C++/CLI | |
---|---|
[Extension()] public: static IOrderedEnumerable<TSource^>^ OrderBygeneric<typename TSource> generic<typename TKey> ( IEnumerable<TSource^>^ source, Func<TSource^,TKey^>^ keySelector, Comparison<TKey^>^ comparer ) |
Parameters
- source
- keySelector
- comparer
Type Parameters
- TSource
- TKey
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