Click or drag to resize

collectionExtensionstoSortedKeyValueListT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
To the sorted list of Keys from IDictionary where Keys are instances and Values are number fo sort by

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static List<KeyValuePair<T, int>> toSortedKeyValueList<T>(
	this IDictionary<T, int> dict
)
Request Example View Source

Parameters

dict
Type: System.Collections.GenericIDictionaryT, Int32
The dictionary.

Type Parameters

T

Return Value

Type: ListKeyValuePairT, Int32
List with instances, sorted by value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryT, Int32. 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