Click or drag to resize

Extensions Class

A collection of helpful extensions
Inheritance Hierarchy
SystemObject
  Couchbase.Lite.UtilExtensions

Namespace:  Couchbase.Lite.Util
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0469
Syntax
C#
public static class Extensions

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCastOrDefaultT
Attempts to cast an object to a given type, and returning a default value if not successful
Public methodStatic memberGetTKey, TValue(IDictionaryTKey, TValue, TKey)
Attempts to get the value for a given key from a dictionary, returning the compiler default value if not successful
Public methodStatic memberGetTKey, TValue(IReadOnlyDictionaryTKey, TValue, TKey)
Attempts to get the value for a given key from a dictionary, returning the compiler default value if not successful
Public methodStatic memberGetCastT(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
Public methodStatic memberGetCastT(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
Public methodStatic memberGetNumericType
Gets the appropriate numeric type for comparing two untyped objects
Public methodStatic memberRecursiveEqual
Tests for equality between two untyped objects, and if they are collections recursively checks for equality on each entry.
Public methodStatic memberReplaceAll
Replaces all instances of a given regex with the given replacement
Public methodStatic memberTryCastT
Attempts to cast an object to a given type
Public methodStatic memberTryGetValueT(IDictionaryString, Object, String, T)
Tries to get the value for the given key as the given type
Public methodStatic memberTryGetValueT(IReadOnlyDictionaryString, Object, String, T)
Tries to get the value for the given key as the given type
Top
See Also