Extensions Class |
Namespace: Couchbase.Lite.Util
public static class Extensions
The Extensions type exposes the following members.
Name | Description | |
---|---|---|
CastOrDefaultT(Object) |
Attempts to cast an object to a given type, and returning a compiler default value if not successful
| |
CastOrDefaultT(Object, T) |
Attempts to cast an object to a given type, and returning a default value if not successful
| |
GetTKey, TValue(IDictionaryTKey, TValue, TKey) |
Attempts to get the value for a given key from a dictionary, returning the compiler
default value if not successful
| |
GetTKey, TValue(IReadOnlyDictionaryTKey, TValue, TKey) |
Attempts to get the value for a given key from a dictionary, returning the compiler
default value if not successful
| |
GetCastT(IDictionaryString, Object, String) |
Gets the value for the given key as the given type, or the compiler default value
if the value does not exist or is the incorrect type
| |
GetCastT(IReadOnlyDictionaryString, Object, String) |
Gets the value for the given key as the given type, or the compiler default value
if the value does not exist or is the incorrect type
| |
GetCastT(IDictionaryString, Object, String, T) |
Gets the value for the given key as the given type, or a default value
if the value does not exist or is the incorrect type
| |
GetCastT(IReadOnlyDictionaryString, Object, String, T) |
Gets the value for the given key as the given type, or a default value
if the value does not exist or is the incorrect type
| |
ReplaceAll |
Replaces all instances of a given regex with the given replacement
| |
TryCastT |
Attempts to cast an object to a given type
| |
TryGetValueT(IDictionaryString, Object, String, T) |
Tries to get the value for the given key as the given type
| |
TryGetValueT(IReadOnlyDictionaryString, Object, String, T) |
Tries to get the value for the given key as the given type
|