Extensions Class |
Namespace: Couchbase.Lite.Util
public static class Extensions
The Extensions type exposes the following members.
| Name | Description | |
|---|---|---|
| CastOrDefaultT |
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, 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
| |
| GetNumericType |
Gets the appropriate numeric type for comparing two untyped objects
| |
| RecursiveEqual |
Tests for equality between two untyped objects, and if they are collections
recursively checks for equality on each entry.
| |
| 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
|