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-b0364
Syntax
C#
public static class Extensions

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCastOrDefaultT(Object)
Attempts to cast an object to a given type, and returning a compiler default value if not successful
Public methodStatic memberCastOrDefaultT(Object, T)
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)
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
Public methodStatic memberGetCastT(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
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 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