Class CollectionExtensions
Inheritance
CollectionExtensions
Assembly: DotNetNuke.dll
Syntax
public static class CollectionExtensions
Methods
CreateDictionaryFromString(string, char, char)
Declaration
public static Dictionary<string, string> CreateDictionaryFromString(string stringOfPairs, char pairsSeparator, char pairSeparator)
Parameters
Type |
Name |
Description |
string |
stringOfPairs |
|
char |
pairsSeparator |
|
char |
pairSeparator |
|
Returns
DictionaryToString(Dictionary<string, string>, string, string)
Declaration
public static string DictionaryToString(this Dictionary<string, string> dictionary, string pairsSeparator, string pairSeparator)
Parameters
Returns
ForEach<TType>(IEnumerable<TType>, Action<TType>)
Declaration
public static IEnumerable<TType> ForEach<TType>(this IEnumerable<TType> source, Action<TType> action)
Parameters
Returns
Type Parameters
GetFlexibleBooleanParsingFunction()
Declaration
public static Func<string, bool> GetFlexibleBooleanParsingFunction()
Returns
GetFlexibleBooleanParsingFunction(params string[])
Declaration
public static Func<string, bool> GetFlexibleBooleanParsingFunction(params string[] trueValues)
Parameters
Type |
Name |
Description |
string[] |
trueValues |
|
Returns
GetValueOrDefault<T>(IDictionary, string)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IDictionary, string, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IDictionary, string, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IDictionary, string, T)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key, T defaultValue)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IDictionary, string, T, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key, T defaultValue, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IDictionary, string, T, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this IDictionary dictionary, string key, T defaultValue, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string, T)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key, T defaultValue)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string, T, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key, T defaultValue, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(NameValueCollection, string, T, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this NameValueCollection collection, string key, T defaultValue, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string, T)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key, T defaultValue)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string, T, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key, T defaultValue, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(ILookup<string, string>, string, T, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this ILookup<string, string> lookup, string key, T defaultValue, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string, T)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key, T defaultValue)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string, T, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key, T defaultValue, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(XContainer, string, T, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this XContainer node, string key, T defaultValue, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string, T)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key, T defaultValue)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string, T, Func<object, T>)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key, T defaultValue, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValueOrDefault<T>(IXPathNavigable, string, T, Func<string, T>)
Declaration
public static T GetValueOrDefault<T>(this IXPathNavigable node, string key, T defaultValue, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(IDictionary, string)
Declaration
public static T GetValue<T>(this IDictionary dictionary, string key)
Parameters
Returns
Type Parameters
GetValue<T>(IDictionary, string, Func<object, T>)
Declaration
public static T GetValue<T>(this IDictionary dictionary, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(IDictionary, string, Func<string, T>)
Declaration
public static T GetValue<T>(this IDictionary dictionary, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(NameValueCollection, string)
Declaration
public static T GetValue<T>(this NameValueCollection collection, string key)
Parameters
Returns
Type Parameters
GetValue<T>(NameValueCollection, string, Func<object, T>)
Declaration
public static T GetValue<T>(this NameValueCollection collection, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(NameValueCollection, string, Func<string, T>)
Declaration
public static T GetValue<T>(this NameValueCollection collection, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(ILookup<string, string>, string)
Declaration
public static T GetValue<T>(this ILookup<string, string> lookup, string key)
Parameters
Returns
Type Parameters
GetValue<T>(ILookup<string, string>, string, Func<object, T>)
Declaration
public static T GetValue<T>(this ILookup<string, string> lookup, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(ILookup<string, string>, string, Func<string, T>)
Declaration
public static T GetValue<T>(this ILookup<string, string> lookup, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(XContainer, string)
Declaration
public static T GetValue<T>(this XContainer node, string key)
Parameters
Returns
Type Parameters
GetValue<T>(XContainer, string, Func<object, T>)
Declaration
public static T GetValue<T>(this XContainer node, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(XContainer, string, Func<string, T>)
Declaration
public static T GetValue<T>(this XContainer node, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(IXPathNavigable, string)
Declaration
public static T GetValue<T>(this IXPathNavigable node, string key)
Parameters
Returns
Type Parameters
GetValue<T>(IXPathNavigable, string, Func<object, T>)
Declaration
public static T GetValue<T>(this IXPathNavigable node, string key, Func<object, T> converter)
Parameters
Returns
Type Parameters
GetValue<T>(IXPathNavigable, string, Func<string, T>)
Declaration
public static T GetValue<T>(this IXPathNavigable node, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValues<T>(NameValueCollection, string)
Declaration
public static IEnumerable<T> GetValues<T>(this NameValueCollection collection, string key)
Parameters
Returns
Type Parameters
GetValues<T>(NameValueCollection, string, Func<string, T>)
Declaration
public static IEnumerable<T> GetValues<T>(this NameValueCollection collection, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
GetValues<T>(ILookup<string, string>, string)
Declaration
public static IEnumerable<T> GetValues<T>(this ILookup<string, string> lookup, string key)
Parameters
Returns
Type Parameters
GetValues<T>(ILookup<string, string>, string, Func<string, T>)
Declaration
public static IEnumerable<T> GetValues<T>(this ILookup<string, string> lookup, string key, Func<string, T> converter)
Parameters
Returns
Type Parameters
ToLookup(NameValueCollection)
Declaration
public static ILookup<string, string> ToLookup(this NameValueCollection collection)
Parameters
Returns
ToLookup(NameValueCollection, bool)
Declaration
public static ILookup<string, string> ToLookup(this NameValueCollection collection, bool splitValues)
Parameters
Returns