ExtensionMethodsToCaseInsensitiveDictionaryTSource Method

Definition

Namespace: Centralpoint.Web
Assembly: Centralpoint.Web (in Centralpoint.Web.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static Dictionary<string, TSource> ToCaseInsensitiveDictionary<TSource>(
	this IEnumerable<TSource> source,
	Func<TSource, string> keySelector,
	bool skipDuplicates = true
)

Parameters

source  IEnumerableTSource
 
keySelector  FuncTSource, String
 
skipDuplicates  Boolean  (Optional)
 

Type Parameters

TSource

Return Value

DictionaryString, TSource

Usage 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