Search Results for

    Show / Hide Table of Contents

    Struct RealmValue

    A type that can represent any valid Realm data type. It is a valid type in and of itself, which means that it can be used to declare a property of type RealmValue. Please note that a RealmValue property in a managed realm object cannot contain an embedded object or an asymmetric object.

    Implements
    IEquatable<RealmValue>
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    [Preserve(AllMembers = true)]
    public readonly struct RealmValue : IEquatable<RealmValue>
    Examples
    public class MyClass : RealmObject
    {
        public RealmValue MyValue { get; set; }
    }
    
    var obj = new MyClass();
    obj.MyValue = 123;
    obj.MyValue = "abc";
    
    if (obj.Type == RealmValueType.Int)
    {
        var myInt = obj.MyValue.AsLong();
    }

    Properties

    | Improve this Doc View Source

    Null

    Gets a RealmValue representing null.

    Declaration
    public static readonly RealmValue Null { get; }
    Property Value
    Type Description
    RealmValue

    A new RealmValue instance of type Null.

    | Improve this Doc View Source

    ObjectType

    Gets the name of the type of the object contained in RealmValue. If it does not contain an object, it will return null.

    Declaration
    public readonly string ObjectType { get; }
    Property Value
    Type Description
    String

    The name of the type stored in RealmValue if an object, null otherwise.

    | Improve this Doc View Source

    Type

    Gets the RealmValueType stored in this value.

    Declaration
    public readonly RealmValueType Type { get; }
    Property Value
    Type Description
    RealmValueType

    The RealmValueType of the current value in the database.

    Remarks

    You can check the type of the Realm value and then use any of the AsXXX methods to convert it to correct C# type.
    For performance reasons, all integral types, i.e. Byte, Int16, Int32, Int64, as well as Char are represented as Int. Realm preserves no information about the original type of the integral value stored in a RealmValue field.

    Methods

    | Improve this Doc View Source

    As<T>()

    Returns the stored value converted to T.

    Declaration
    public readonly T As<T>()
    Returns
    Type Description
    T

    The underlying value converted to T.

    Type Parameters
    Name Description
    T

    The type to which to convert the value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the type is not convertible to T.

    | Improve this Doc View Source

    AsAny()

    Returns the stored value boxed in Object.

    Declaration
    public readonly object AsAny()
    Returns
    Type Description
    Object

    The underlying value.

    | Improve this Doc View Source

    AsBool()

    Returns the stored value as a Boolean.

    Declaration
    public readonly bool AsBool()
    Returns
    Type Description
    Boolean

    A boolean representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Bool.

    | Improve this Doc View Source

    AsByte()

    Returns the stored value as a Byte.

    Declaration
    public readonly byte AsByte()
    Returns
    Type Description
    Byte

    An 8-bit unsigned integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsByteRealmInteger()
    | Improve this Doc View Source

    AsByteRealmInteger()

    Returns the stored value as a RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<byte> AsByteRealmInteger()
    Returns
    Type Description
    RealmInteger<Byte>

    An 8-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsByte()
    | Improve this Doc View Source

    AsChar()

    Returns the stored value as a Char.

    Declaration
    public readonly char AsChar()
    Returns
    Type Description
    Char

    A UTF-16 code unit representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    | Improve this Doc View Source

    AsData()

    Returns the stored value as an array of bytes.

    Declaration
    public readonly byte[] AsData()
    Returns
    Type Description
    Byte[]

    An array of bytes representing the value stored in the database. It will be null if Type is Null.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Data or Null.

    | Improve this Doc View Source

    AsDate()

    Returns the stored value as a DateTimeOffset.

    Declaration
    public readonly DateTimeOffset AsDate()
    Returns
    Type Description
    DateTimeOffset

    A DateTimeOffset value representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Date.

    | Improve this Doc View Source

    AsDecimal()

    Returns the stored value as a Decimal.

    Declaration
    public readonly decimal AsDecimal()
    Returns
    Type Description
    Decimal

    A 96-bit decimal number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Decimal128.

    | Improve this Doc View Source

    AsDecimal128()

    Returns the stored value as a MongoDB.Bson.Decimal128.

    Declaration
    public readonly Decimal128 AsDecimal128()
    Returns
    Type Description
    MongoDB.Bson.Decimal128

    A 128-bit decimal number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Decimal128.

    | Improve this Doc View Source

    AsDouble()

    Returns the stored value as a Double.

    Declaration
    public readonly double AsDouble()
    Returns
    Type Description
    Double

    A 64-bit floating point number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Double.

    | Improve this Doc View Source

    AsFloat()

    Returns the stored value as a Single.

    Declaration
    public readonly float AsFloat()
    Returns
    Type Description
    Single

    A 32-bit floating point number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Float.

    | Improve this Doc View Source

    AsGuid()

    Returns the stored value as a Guid.

    Declaration
    public readonly Guid AsGuid()
    Returns
    Type Description
    Guid

    A Guid representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Guid.

    | Improve this Doc View Source

    AsInt16()

    Returns the stored value as a Int16 (Int16).

    Declaration
    public readonly short AsInt16()
    Returns
    Type Description
    Int16

    A 16-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt16RealmInteger()
    | Improve this Doc View Source

    AsInt16RealmInteger()

    Returns the stored value as a RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<short> AsInt16RealmInteger()
    Returns
    Type Description
    RealmInteger<Int16>

    An 16-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt16()
    | Improve this Doc View Source

    AsInt32()

    Returns the stored value as an Int32 (Int32).

    Declaration
    public readonly int AsInt32()
    Returns
    Type Description
    Int32

    A 32-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt32RealmInteger()
    | Improve this Doc View Source

    AsInt32RealmInteger()

    Returns the stored value as a RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<int> AsInt32RealmInteger()
    Returns
    Type Description
    RealmInteger<Int32>

    An 32-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt32()
    | Improve this Doc View Source

    AsInt64()

    Returns the stored value as a Int64 (Int64).

    Declaration
    public readonly long AsInt64()
    Returns
    Type Description
    Int64

    A 64-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt64RealmInteger()
    | Improve this Doc View Source

    AsInt64RealmInteger()

    Returns the stored value as a RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<long> AsInt64RealmInteger()
    Returns
    Type Description
    RealmInteger<Int64>

    An 64-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int.

    See Also
    AsInt64()
    | Improve this Doc View Source

    AsIRealmObject()

    Returns the stored value as a IRealmObjectBase.

    Declaration
    public readonly IRealmObjectBase AsIRealmObject()
    Returns
    Type Description
    IRealmObjectBase

    A IRealmObjectBase instance representing the value stored in the database. It will be null if Type is Null.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Object or Null.

    | Improve this Doc View Source

    AsNullableBool()

    Returns the stored value as a nullable Boolean.

    Declaration
    public readonly bool? AsNullableBool()
    Returns
    Type Description
    Nullable<Boolean>

    A nullable boolean representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Bool or Null.

    | Improve this Doc View Source

    AsNullableByte()

    Returns the stored value as a nullable Byte.

    Declaration
    public readonly byte? AsNullableByte()
    Returns
    Type Description
    Nullable<Byte>

    A nullable 8-bit unsigned integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableByteRealmInteger()
    | Improve this Doc View Source

    AsNullableByteRealmInteger()

    Returns the stored value as a nullable RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<byte>? AsNullableByteRealmInteger()
    Returns
    Type Description
    Nullable<RealmInteger<Byte>>

    A nullable 8-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableByte()
    | Improve this Doc View Source

    AsNullableChar()

    Returns the stored value as a nullable Char.

    Declaration
    public readonly char? AsNullableChar()
    Returns
    Type Description
    Nullable<Char>

    A nullable UTF-16 code unit representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    | Improve this Doc View Source

    AsNullableDate()

    Returns the stored value as a nullable DateTimeOffset.

    Declaration
    public readonly DateTimeOffset? AsNullableDate()
    Returns
    Type Description
    Nullable<DateTimeOffset>

    A nullable DateTimeOffset value representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Date or Null.

    | Improve this Doc View Source

    AsNullableDecimal()

    Returns the stored value as a nullable Decimal.

    Declaration
    public readonly decimal? AsNullableDecimal()
    Returns
    Type Description
    Nullable<Decimal>

    A nullable 96-bit decimal number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Decimal128 or Null.

    | Improve this Doc View Source

    AsNullableDecimal128()

    Returns the stored value as a nullable MongoDB.Bson.Decimal128.

    Declaration
    public readonly Decimal128? AsNullableDecimal128()
    Returns
    Type Description
    Nullable<MongoDB.Bson.Decimal128>

    A nullable 128-bit decimal number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Date or Null.

    | Improve this Doc View Source

    AsNullableDouble()

    Returns the stored value as a nullable Double.

    Declaration
    public readonly double? AsNullableDouble()
    Returns
    Type Description
    Nullable<Double>

    A nullable 64-bit floating point number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Double or Null.

    | Improve this Doc View Source

    AsNullableFloat()

    Returns the stored value as a nullable Single.

    Declaration
    public readonly float? AsNullableFloat()
    Returns
    Type Description
    Nullable<Single>

    A nullable 32-bit floating point number representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Float or Null.

    | Improve this Doc View Source

    AsNullableGuid()

    Returns the stored value as a nullable Guid.

    Declaration
    public readonly Guid? AsNullableGuid()
    Returns
    Type Description
    Nullable<Guid>

    A nullable Guid representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Guid or Null.

    | Improve this Doc View Source

    AsNullableInt16()

    Returns the stored value as a nullable Int16.

    Declaration
    public readonly short? AsNullableInt16()
    Returns
    Type Description
    Nullable<Int16>

    A nullable 16-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt16RealmInteger()
    | Improve this Doc View Source

    AsNullableInt16RealmInteger()

    Returns the stored value as a nullable RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<short>? AsNullableInt16RealmInteger()
    Returns
    Type Description
    Nullable<RealmInteger<Int16>>

    A nullable 16-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt16()
    | Improve this Doc View Source

    AsNullableInt32()

    Returns the stored value as a nullable Int32.

    Declaration
    public readonly int? AsNullableInt32()
    Returns
    Type Description
    Nullable<Int32>

    A nullable 32-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt32RealmInteger()
    | Improve this Doc View Source

    AsNullableInt32RealmInteger()

    Returns the stored value as a nullable RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<int>? AsNullableInt32RealmInteger()
    Returns
    Type Description
    Nullable<RealmInteger<Int32>>

    A nullable 32-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt32()
    | Improve this Doc View Source

    AsNullableInt64()

    Returns the stored value as a nullable Int64.

    Declaration
    public readonly long? AsNullableInt64()
    Returns
    Type Description
    Nullable<Int64>

    A nullable 64-bit integer representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt64RealmInteger()
    | Improve this Doc View Source

    AsNullableInt64RealmInteger()

    Returns the stored value as a nullable RealmInteger<T>. It offers Increment/Decrement API that preserve intent when merging conflicts.

    Declaration
    public readonly RealmInteger<long>? AsNullableInt64RealmInteger()
    Returns
    Type Description
    Nullable<RealmInteger<Int64>>

    A nullable 64-bit RealmInteger<T> representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Int or Null.

    See Also
    AsNullableInt64()
    | Improve this Doc View Source

    AsNullableObjectId()

    Returns the stored value as a nullable MongoDB.Bson.ObjectId.

    Declaration
    public readonly ObjectId? AsNullableObjectId()
    Returns
    Type Description
    Nullable<MongoDB.Bson.ObjectId>

    A nullable ObjectId representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type ObjectId or Null.

    | Improve this Doc View Source

    AsObjectId()

    Returns the stored value as an MongoDB.Bson.ObjectId.

    Declaration
    public readonly ObjectId AsObjectId()
    Returns
    Type Description
    MongoDB.Bson.ObjectId

    An ObjectId representing the value stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type ObjectId.

    | Improve this Doc View Source

    AsRealmObject()

    Returns the stored value as a RealmObjectBase.

    Declaration
    public readonly RealmObjectBase AsRealmObject()
    Returns
    Type Description
    RealmObjectBase

    A RealmObjectBase instance representing the value stored in the database. It will be null if Type is Null.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Object or Null.

    | Improve this Doc View Source

    AsRealmObject<T>()

    Returns the stored value as a T which inherits from RealmObjectBase.

    Declaration
    public readonly T AsRealmObject<T>()
        where T : IRealmObjectBase
    Returns
    Type Description
    T

    A RealmObjectBase instance representing the value stored in the database. It will be null if Type is Null.

    Type Parameters
    Name Description
    T

    The type of the object stored in the database.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type Object or Null.

    | Improve this Doc View Source

    AsString()

    Returns the stored value as a string.

    Declaration
    public readonly string AsString()
    Returns
    Type Description
    String

    A string representing the value stored in the database. It will be null if Type is Null.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the underlying value is not of type String or Null.

    | Improve this Doc View Source

    Equals(RealmValue)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public readonly bool Equals(RealmValue other)
    Parameters
    Type Name Description
    RealmValue other

    An object to compare with this object.

    Returns
    Type Description
    Boolean

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    ToString()

    Returns the string representation of this RealmValue.

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    String

    A string describing the value.

    Overrides
    ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Equality(RealmValue, RealmValue)

    Declaration
    public static bool operator ==(RealmValue left, RealmValue right)
    Parameters
    Type Name Description
    RealmValue left
    RealmValue right
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Explicit(RealmValue to Decimal128)

    Declaration
    public static explicit operator Decimal128(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    MongoDB.Bson.Decimal128
    | Improve this Doc View Source

    Explicit(RealmValue to ObjectId)

    Declaration
    public static explicit operator ObjectId(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    MongoDB.Bson.ObjectId
    | Improve this Doc View Source

    Explicit(RealmValue to RealmInteger<Byte>)

    Declaration
    public static explicit operator RealmInteger<byte>(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    RealmInteger<Byte>
    | Improve this Doc View Source

    Explicit(RealmValue to RealmInteger<Int16>)

    Declaration
    public static explicit operator RealmInteger<short>(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    RealmInteger<Int16>
    | Improve this Doc View Source

    Explicit(RealmValue to RealmInteger<Int32>)

    Declaration
    public static explicit operator RealmInteger<int>(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    RealmInteger<Int32>
    | Improve this Doc View Source

    Explicit(RealmValue to RealmInteger<Int64>)

    Declaration
    public static explicit operator RealmInteger<long>(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    RealmInteger<Int64>
    | Improve this Doc View Source

    Explicit(RealmValue to RealmObjectBase)

    Declaration
    public static explicit operator RealmObjectBase(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    RealmObjectBase
    | Improve this Doc View Source

    Explicit(RealmValue to Boolean)

    Declaration
    public static explicit operator bool (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Explicit(RealmValue to Byte)

    Declaration
    public static explicit operator byte (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Byte
    | Improve this Doc View Source

    Explicit(RealmValue to Byte[])

    Declaration
    public static explicit operator byte[](RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    Explicit(RealmValue to Char)

    Declaration
    public static explicit operator char (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Char
    | Improve this Doc View Source

    Explicit(RealmValue to DateTimeOffset)

    Declaration
    public static explicit operator DateTimeOffset(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    Explicit(RealmValue to Decimal)

    Declaration
    public static explicit operator decimal (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Decimal
    | Improve this Doc View Source

    Explicit(RealmValue to Double)

    Declaration
    public static explicit operator double (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Explicit(RealmValue to Guid)

    Declaration
    public static explicit operator Guid(RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Guid
    | Improve this Doc View Source

    Explicit(RealmValue to Int16)

    Declaration
    public static explicit operator short (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Int16
    | Improve this Doc View Source

    Explicit(RealmValue to Int32)

    Declaration
    public static explicit operator int (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    Explicit(RealmValue to Int64)

    Declaration
    public static explicit operator long (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Decimal128>)

    Declaration
    public static explicit operator Decimal128? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<MongoDB.Bson.Decimal128>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<ObjectId>)

    Declaration
    public static explicit operator ObjectId? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<MongoDB.Bson.ObjectId>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<RealmInteger<Byte>>)

    Declaration
    public static explicit operator RealmInteger<byte>? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<RealmInteger<Byte>>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<RealmInteger<Int16>>)

    Declaration
    public static explicit operator RealmInteger<short>? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<RealmInteger<Int16>>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<RealmInteger<Int32>>)

    Declaration
    public static explicit operator RealmInteger<int>? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<RealmInteger<Int32>>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<RealmInteger<Int64>>)

    Declaration
    public static explicit operator RealmInteger<long>? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<RealmInteger<Int64>>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Boolean>)

    Declaration
    public static explicit operator bool? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Byte>)

    Declaration
    public static explicit operator byte? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Byte>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Char>)

    Declaration
    public static explicit operator char? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Char>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<DateTimeOffset>)

    Declaration
    public static explicit operator DateTimeOffset? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<DateTimeOffset>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Decimal>)

    Declaration
    public static explicit operator decimal? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Decimal>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Double>)

    Declaration
    public static explicit operator double? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Double>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Guid>)

    Declaration
    public static explicit operator Guid? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Guid>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Int16>)

    Declaration
    public static explicit operator short? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Int16>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Int32>)

    Declaration
    public static explicit operator int? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Int64>)

    Declaration
    public static explicit operator long? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    Explicit(RealmValue to Nullable<Single>)

    Declaration
    public static explicit operator float? (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Nullable<Single>
    | Improve this Doc View Source

    Explicit(RealmValue to Single)

    Declaration
    public static explicit operator float (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    Single
    | Improve this Doc View Source

    Explicit(RealmValue to String)

    Declaration
    public static explicit operator string (RealmValue val)
    Parameters
    Type Name Description
    RealmValue val
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Implicit(Decimal128 to RealmValue)

    Declaration
    public static implicit operator RealmValue(Decimal128 val)
    Parameters
    Type Name Description
    MongoDB.Bson.Decimal128 val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(ObjectId to RealmValue)

    Declaration
    public static implicit operator RealmValue(ObjectId val)
    Parameters
    Type Name Description
    MongoDB.Bson.ObjectId val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(RealmInteger<Byte> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<byte> val)
    Parameters
    Type Name Description
    RealmInteger<Byte> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(RealmInteger<Int16> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<short> val)
    Parameters
    Type Name Description
    RealmInteger<Int16> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(RealmInteger<Int32> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<int> val)
    Parameters
    Type Name Description
    RealmInteger<Int32> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(RealmInteger<Int64> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<long> val)
    Parameters
    Type Name Description
    RealmInteger<Int64> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(RealmObjectBase to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmObjectBase val)
    Parameters
    Type Name Description
    RealmObjectBase val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Boolean to RealmValue)

    Declaration
    public static implicit operator RealmValue(bool val)
    Parameters
    Type Name Description
    Boolean val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Byte to RealmValue)

    Declaration
    public static implicit operator RealmValue(byte val)
    Parameters
    Type Name Description
    Byte val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Byte[] to RealmValue)

    Declaration
    public static implicit operator RealmValue(byte[] val)
    Parameters
    Type Name Description
    Byte[] val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Char to RealmValue)

    Declaration
    public static implicit operator RealmValue(char val)
    Parameters
    Type Name Description
    Char val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(DateTimeOffset to RealmValue)

    Declaration
    public static implicit operator RealmValue(DateTimeOffset val)
    Parameters
    Type Name Description
    DateTimeOffset val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Decimal to RealmValue)

    Declaration
    public static implicit operator RealmValue(decimal val)
    Parameters
    Type Name Description
    Decimal val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Double to RealmValue)

    Declaration
    public static implicit operator RealmValue(double val)
    Parameters
    Type Name Description
    Double val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Guid to RealmValue)

    Declaration
    public static implicit operator RealmValue(Guid val)
    Parameters
    Type Name Description
    Guid val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Int16 to RealmValue)

    Declaration
    public static implicit operator RealmValue(short val)
    Parameters
    Type Name Description
    Int16 val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Int32 to RealmValue)

    Declaration
    public static implicit operator RealmValue(int val)
    Parameters
    Type Name Description
    Int32 val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Int64 to RealmValue)

    Declaration
    public static implicit operator RealmValue(long val)
    Parameters
    Type Name Description
    Int64 val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Decimal128> to RealmValue)

    Declaration
    public static implicit operator RealmValue(Decimal128? val)
    Parameters
    Type Name Description
    Nullable<MongoDB.Bson.Decimal128> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<ObjectId> to RealmValue)

    Declaration
    public static implicit operator RealmValue(ObjectId? val)
    Parameters
    Type Name Description
    Nullable<MongoDB.Bson.ObjectId> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<RealmInteger<Byte>> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<byte>? val)
    Parameters
    Type Name Description
    Nullable<RealmInteger<Byte>> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<RealmInteger<Int16>> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<short>? val)
    Parameters
    Type Name Description
    Nullable<RealmInteger<Int16>> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<RealmInteger<Int32>> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<int>? val)
    Parameters
    Type Name Description
    Nullable<RealmInteger<Int32>> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<RealmInteger<Int64>> to RealmValue)

    Declaration
    public static implicit operator RealmValue(RealmInteger<long>? val)
    Parameters
    Type Name Description
    Nullable<RealmInteger<Int64>> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Boolean> to RealmValue)

    Declaration
    public static implicit operator RealmValue(bool? val)
    Parameters
    Type Name Description
    Nullable<Boolean> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Byte> to RealmValue)

    Declaration
    public static implicit operator RealmValue(byte? val)
    Parameters
    Type Name Description
    Nullable<Byte> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Char> to RealmValue)

    Declaration
    public static implicit operator RealmValue(char? val)
    Parameters
    Type Name Description
    Nullable<Char> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<DateTimeOffset> to RealmValue)

    Declaration
    public static implicit operator RealmValue(DateTimeOffset? val)
    Parameters
    Type Name Description
    Nullable<DateTimeOffset> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Decimal> to RealmValue)

    Declaration
    public static implicit operator RealmValue(decimal? val)
    Parameters
    Type Name Description
    Nullable<Decimal> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Double> to RealmValue)

    Declaration
    public static implicit operator RealmValue(double? val)
    Parameters
    Type Name Description
    Nullable<Double> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Guid> to RealmValue)

    Declaration
    public static implicit operator RealmValue(Guid? val)
    Parameters
    Type Name Description
    Nullable<Guid> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Int16> to RealmValue)

    Declaration
    public static implicit operator RealmValue(short? val)
    Parameters
    Type Name Description
    Nullable<Int16> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Int32> to RealmValue)

    Declaration
    public static implicit operator RealmValue(int? val)
    Parameters
    Type Name Description
    Nullable<Int32> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Int64> to RealmValue)

    Declaration
    public static implicit operator RealmValue(long? val)
    Parameters
    Type Name Description
    Nullable<Int64> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Nullable<Single> to RealmValue)

    Declaration
    public static implicit operator RealmValue(float? val)
    Parameters
    Type Name Description
    Nullable<Single> val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(Single to RealmValue)

    Declaration
    public static implicit operator RealmValue(float val)
    Parameters
    Type Name Description
    Single val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Implicit(String to RealmValue)

    Declaration
    public static implicit operator RealmValue(string val)
    Parameters
    Type Name Description
    String val
    Returns
    Type Description
    RealmValue
    | Improve this Doc View Source

    Inequality(RealmValue, RealmValue)

    Declaration
    public static bool operator !=(RealmValue left, RealmValue right)
    Parameters
    Type Name Description
    RealmValue left
    RealmValue right
    Returns
    Type Description
    Boolean

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX