ImageResizer
3.4.0
|
Static Public Member Functions | |
static T | Get< T > (NameValueCollection t, string name) |
Provides culture-invariant parsing of int, double, float, bool, and enum values. More... | |
static T | Get< T > (NameValueCollection q, string name, T?defaultValue) |
Provides culture-invariant parsing of int, double, float, bool, and enum values. More... | |
static T | Get< T > (NameValueCollection q, string name, T defaultValue) |
Provides culture-invariant parsing of int, double, float, bool, and enum values. More... | |
static T | ParsePrimitive< T > (string value, T?defaultValue) |
Provides culture-invariant parsing of int, double, float, bool, and enum values. More... | |
static string | SerializePrimitive< T > (T?val) |
static NameValueCollection | SetAsString< T > (NameValueCollection q, string name, T val) |
Serializes the given value by calling .ToString(). If the value is null, the key is removed. More... | |
static NameValueCollection | Set< T > (NameValueCollection q, string name, T?val) |
Provides culture-invariant serialization of value types, in lower case for querystring readability. Setting a key to null removes it. More... | |
static T[] | GetList< T > (NameValueCollection q, string name, T?fallbackValue, params int[] allowedSizes) |
static T[] | ParseList< T > (string text, T?fallbackValue, params int[] allowedSizes) |
Parses a comma-delimited list of primitive values. If there are unparsable items in the list, they will be replaced with 'fallbackValue'. If fallbackValue is null, the function will return null More... | |
static NameValueCollection | SetList< T > (NameValueCollection q, string name, T[] values, bool throwExceptions, params int[] allowedSizes) |
static bool | IsOneSpecified (NameValueCollection q, params string[] keys) |
Returns true if any of the specified keys contain a value More... | |
static NameValueCollection | Normalize (NameValueCollection q, string primary, string secondary) |
Normalizes a command that has two possible names. If either of the commands has a null or empty value, those keys are removed. If both the the primary and secondary are present, the secondary is removed. Otherwise, the secondary is renamed to the primary name. More... | |
static NameValueCollection | Keep (NameValueCollection q, params string[] keysToKeep) |
Creates and returns a new NameValueCollection instance that contains only the specified keys from the current collection. More... | |
Definition at line 10 of file NameValueCollection.cs.
|
inlinestatic |
Provides culture-invariant parsing of int, double, float, bool, and enum values.
T |
t | |
name |
T | : | struct | |
T | : | IConvertible |
Definition at line 22 of file NameValueCollection.cs.
|
inlinestatic |
Provides culture-invariant parsing of int, double, float, bool, and enum values.
T |
q | |
name | |
defaultValue |
T | : | struct | |
T | : | IConvertible |
Definition at line 33 of file NameValueCollection.cs.
|
inlinestatic |
Provides culture-invariant parsing of int, double, float, bool, and enum values.
T |
q | |
name | |
defaultValue |
T | : | struct | |
T | : | IConvertible |
Definition at line 44 of file NameValueCollection.cs.
|
inlinestatic |
Returns true if any of the specified keys contain a value
q | |
keys |
Definition at line 202 of file NameValueCollection.cs.
|
inlinestatic |
Creates and returns a new NameValueCollection instance that contains only the specified keys from the current collection.
q | |
keysToKeep |
Definition at line 239 of file NameValueCollection.cs.
|
inlinestatic |
Normalizes a command that has two possible names. If either of the commands has a null or empty value, those keys are removed. If both the the primary and secondary are present, the secondary is removed. Otherwise, the secondary is renamed to the primary name.
primary | |
secondary |
Definition at line 217 of file NameValueCollection.cs.
|
inlinestatic |
Parses a comma-delimited list of primitive values. If there are unparsable items in the list, they will be replaced with 'fallbackValue'. If fallbackValue is null, the function will return null
T |
text | |
fallbackValue | |
allowedSizes |
T | : | struct | |
T | : | IConvertible |
Definition at line 149 of file NameValueCollection.cs.
|
inlinestatic |
Provides culture-invariant parsing of int, double, float, bool, and enum values.
T |
value | |
defaultValue |
T | : | struct | |
T | : | IConvertible |
Definition at line 56 of file NameValueCollection.cs.
|
inlinestatic |
Provides culture-invariant serialization of value types, in lower case for querystring readability. Setting a key to null removes it.
T |
q | |
name | |
val |
T | : | struct | |
T | : | IConvertible |
Definition at line 131 of file NameValueCollection.cs.
|
inlinestatic |
Serializes the given value by calling .ToString(). If the value is null, the key is removed.
T |
q | |
name | |
val |
T | : | class |
Definition at line 117 of file NameValueCollection.cs.