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 Realm
Implements
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
| Edit this page View SourceNull
Gets a RealmValue representing null
.
Declaration
public static RealmValue Null { get; }
Property Value
Type | Description |
---|---|
Realm |
A new RealmValue instance of type Null. |
ObjectType
Gets the name of the type of the object contained in Realm
Declaration
public string? ObjectType { get; }
Property Value
Type | Description |
---|---|
string | The name of the type stored in Realm |
Type
Gets the Realm
Declaration
public RealmValueType Type { get; }
Property Value
Type | Description |
---|---|
Realm |
The Realm |
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, short, int, long,
as well as char are represented as Int. Realm preserves no information about the original
type of the integral value stored in a Realm
Methods
| Edit this page View SourceAsAny()
Returns the stored value boxed in object.
Declaration
public object? AsAny()
Returns
Type | Description |
---|---|
object | The underlying value. |
AsBool()
Returns the stored value as a bool.
Declaration
public bool AsBool()
Returns
Type | Description |
---|---|
bool | A boolean representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Bool. |
AsByte()
Returns the stored value as a byte.
Declaration
public byte AsByte()
Returns
Type | Description |
---|---|
byte | An 8-bit unsigned integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsByteRealmInteger()
Returns the stored value as a Realm
Declaration
public RealmInteger<byte> AsByteRealmInteger()
Returns
Type | Description |
---|---|
Realm |
An 8-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsChar()
Returns the stored value as a char.
Declaration
public char AsChar()
Returns
Type | Description |
---|---|
char | A UTF-16 code unit representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
AsData()
Returns the stored value as an array of bytes.
Declaration
public byte[] AsData()
Returns
Type | Description |
---|---|
byte[] | An array of bytes representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Data. |
AsDate()
Returns the stored value as a Date
Declaration
public DateTimeOffset AsDate()
Returns
Type | Description |
---|---|
Date |
A DateTimeOffset value representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Date. |
AsDecimal()
Returns the stored value as a decimal.
Declaration
public decimal AsDecimal()
Returns
Type | Description |
---|---|
decimal | A 96-bit decimal number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Decimal128. |
AsDecimal128()
Returns the stored value as a Mongo
Declaration
public Decimal128 AsDecimal128()
Returns
Type | Description |
---|---|
Decimal128 | A 128-bit decimal number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Decimal128. |
AsDictionary()
Returns the stored value as a dictionary.
Declaration
public IDictionary<string, RealmValue> AsDictionary()
Returns
Type | Description |
---|---|
IDictionary<string, Realm |
A dictionary representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Dictionary. |
AsDouble()
Returns the stored value as a double.
Declaration
public double AsDouble()
Returns
Type | Description |
---|---|
double | A 64-bit floating point number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Double. |
AsFloat()
Returns the stored value as a float.
Declaration
public float AsFloat()
Returns
Type | Description |
---|---|
float | A 32-bit floating point number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Float. |
AsGuid()
Returns the stored value as a Guid.
Declaration
public Guid AsGuid()
Returns
Type | Description |
---|---|
Guid | A Guid representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Guid. |
AsIRealmObject()
Returns the stored value as a IRealm
Declaration
public IRealmObjectBase AsIRealmObject()
Returns
Type | Description |
---|---|
IRealm |
A IRealm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object. |
AsInt16()
Returns the stored value as a short (Int16).
Declaration
public short AsInt16()
Returns
Type | Description |
---|---|
short | A 16-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsInt16RealmInteger()
Returns the stored value as a Realm
Declaration
public RealmInteger<short> AsInt16RealmInteger()
Returns
Type | Description |
---|---|
Realm |
An 16-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsInt32()
Returns the stored value as an int (Int32).
Declaration
public int AsInt32()
Returns
Type | Description |
---|---|
int | A 32-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsInt32RealmInteger()
Returns the stored value as a Realm
Declaration
public RealmInteger<int> AsInt32RealmInteger()
Returns
Type | Description |
---|---|
Realm |
An 32-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsInt64()
Returns the stored value as a long (Int64).
Declaration
public long AsInt64()
Returns
Type | Description |
---|---|
long | A 64-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsInt64RealmInteger()
Returns the stored value as a Realm
Declaration
public RealmInteger<long> AsInt64RealmInteger()
Returns
Type | Description |
---|---|
Realm |
An 64-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Int. |
See Also
| Edit this page View SourceAsList()
Returns the stored value as a list.
Declaration
public IList<RealmValue> AsList()
Returns
Type | Description |
---|---|
IList<Realm |
A list representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type List. |
AsNullableBool()
Returns the stored value as a nullable bool.
Declaration
public bool? AsNullableBool()
Returns
Type | Description |
---|---|
bool? | A nullable boolean representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableByte()
Returns the stored value as a nullable byte.
Declaration
public byte? AsNullableByte()
Returns
Type | Description |
---|---|
byte? | A nullable 8-bit unsigned integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableByteRealmInteger()
Returns the stored value as a nullable Realm
Declaration
public RealmInteger<byte>? AsNullableByteRealmInteger()
Returns
Type | Description |
---|---|
Realm |
A nullable 8-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableChar()
Returns the stored value as a nullable char.
Declaration
public char? AsNullableChar()
Returns
Type | Description |
---|---|
char? | A nullable UTF-16 code unit representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableData()
Returns the stored value as an array of bytes.
Declaration
public byte[]? AsNullableData()
Returns
Type | Description |
---|---|
byte[] | A nullable array of bytes representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableDate()
Returns the stored value as a nullable Date
Declaration
public DateTimeOffset? AsNullableDate()
Returns
Type | Description |
---|---|
Date |
A nullable DateTimeOffset value representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableDecimal()
Returns the stored value as a nullable decimal.
Declaration
public decimal? AsNullableDecimal()
Returns
Type | Description |
---|---|
decimal? | A nullable 96-bit decimal number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Decimal128 or Null. |
AsNullableDecimal128()
Returns the stored value as a nullable Mongo
Declaration
public Decimal128? AsNullableDecimal128()
Returns
Type | Description |
---|---|
Decimal128? | A nullable 128-bit decimal number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableDouble()
Returns the stored value as a nullable double.
Declaration
public double? AsNullableDouble()
Returns
Type | Description |
---|---|
double? | A nullable 64-bit floating point number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Double or Null. |
AsNullableFloat()
Returns the stored value as a nullable float.
Declaration
public float? AsNullableFloat()
Returns
Type | Description |
---|---|
float? | A nullable 32-bit floating point number representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Float or Null. |
AsNullableGuid()
Returns the stored value as a nullable Guid.
Declaration
public Guid? AsNullableGuid()
Returns
Type | Description |
---|---|
Guid? | A nullable Guid representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
AsNullableIRealmObject()
Returns the stored value as a IRealm
Declaration
public IRealmObjectBase? AsNullableIRealmObject()
Returns
Type | Description |
---|---|
IRealm |
A nullable IRealm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object or Null. |
AsNullableInt16()
Returns the stored value as a nullable short.
Declaration
public short? AsNullableInt16()
Returns
Type | Description |
---|---|
short? | A nullable 16-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableInt16RealmInteger()
Returns the stored value as a nullable Realm
Declaration
public RealmInteger<short>? AsNullableInt16RealmInteger()
Returns
Type | Description |
---|---|
Realm |
A nullable 16-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableInt32()
Returns the stored value as a nullable int.
Declaration
public int? AsNullableInt32()
Returns
Type | Description |
---|---|
int? | A nullable 32-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableInt32RealmInteger()
Returns the stored value as a nullable Realm
Declaration
public RealmInteger<int>? AsNullableInt32RealmInteger()
Returns
Type | Description |
---|---|
Realm |
A nullable 32-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableInt64()
Returns the stored value as a nullable long.
Declaration
public long? AsNullableInt64()
Returns
Type | Description |
---|---|
long? | A nullable 64-bit integer representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableInt64RealmInteger()
Returns the stored value as a nullable Realm
Declaration
public RealmInteger<long>? AsNullableInt64RealmInteger()
Returns
Type | Description |
---|---|
Realm |
A nullable 64-bit Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
See Also
| Edit this page View SourceAsNullableObjectId()
Returns the stored value as a nullable Mongo
Declaration
public ObjectId? AsNullableObjectId()
Returns
Type | Description |
---|---|
Object |
A nullable ObjectId representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object |
AsNullableRealmObject()
Returns the stored value as a Realm
Declaration
public RealmObjectBase? AsNullableRealmObject()
Returns
Type | Description |
---|---|
Realm |
A nullable Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object or Null. |
AsNullableRealmObject<T>()
Returns the stored value as a T
which inherits from Realm
Declaration
public T? AsNullableRealmObject<T>() where T : class, IRealmObjectBase
Returns
Type | Description |
---|---|
T | A nullable Realm |
Type Parameters
Name | Description |
---|---|
T | The type of the object stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object or Null. |
AsNullableString()
Returns the stored value as a string.
Declaration
public string? AsNullableString()
Returns
Type | Description |
---|---|
string | A nullable string representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type String or Null. |
AsObjectId()
Returns the stored value as an Mongo
Declaration
public ObjectId AsObjectId()
Returns
Type | Description |
---|---|
Object |
An ObjectId representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object |
AsRealmObject()
Returns the stored value as a Realm
Declaration
public RealmObjectBase AsRealmObject()
Returns
Type | Description |
---|---|
Realm |
A Realm |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object. |
AsRealmObject<T>()
Returns the stored value as a T
which inherits from Realm
Declaration
public T AsRealmObject<T>() where T : IRealmObjectBase
Returns
Type | Description |
---|---|
T | A Realm |
Type Parameters
Name | Description |
---|---|
T | The type of the object stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type Object. |
AsString()
Returns the stored value as a string.
Declaration
public string AsString()
Returns
Type | Description |
---|---|
string | A string representing the value stored in the database. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the underlying value is not of type String. |
As<T>()
Returns the stored value converted to T
.
Declaration
public T As<T>()
Returns
Type | Description |
---|---|
T | The underlying value converted to |
Type Parameters
Name | Description |
---|---|
T | The type to which to convert the value. |
Exceptions
Type | Condition |
---|---|
Invalid |
Thrown if the type is not convertible to |
Dictionary(IDictionary<string, RealmValue>)
Gets a RealmValue representing a dictionary.
Declaration
public static RealmValue Dictionary(IDictionary<string, RealmValue> value)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, Realm |
value | The input dictionary to copy. |
Returns
Type | Description |
---|---|
Realm |
A new RealmValue representing the input dictionary. |
Remarks
Once created, this RealmValue will just wrap the input collection. After the object containing this RealmValue gets managed this value will be a Realm dictionary.
Equals(RealmValue)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(RealmValue other)
Parameters
Type | Name | Description |
---|---|---|
Realm |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the other parameter; otherwise, false. |
List(IList<RealmValue>)
Gets a RealmValue representing a list.
Declaration
public static RealmValue List(IList<RealmValue> value)
Parameters
Type | Name | Description |
---|---|---|
IList<Realm |
value | The input list to copy. |
Returns
Type | Description |
---|---|
Realm |
A new RealmValue representing the input list. |
Remarks
Once created, this RealmValue will just wrap the input collection. After the object containing this RealmValue gets managed this value will be a Realm list.
ToString()
Returns the string representation of this Realm
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string describing the value. |
Overrides
Operators
| Edit this page View Sourceoperator ==(RealmValue, RealmValue)
Compares two Realm
Declaration
public static bool operator ==(RealmValue left, RealmValue right)
Parameters
Type | Name | Description |
---|---|---|
Realm |
left | The left instance. |
Realm |
right | The right instance. |
Returns
Type | Description |
---|---|
bool |
|
explicit operator Decimal128(RealmValue)
Converts a Realm
Declaration
public static explicit operator Decimal128(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Decimal128 | The Mongo |
explicit operator ObjectId(RealmValue)
Converts a Realm
Declaration
public static explicit operator ObjectId(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Object |
The Mongo |
explicit operator RealmInteger<byte>(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<byte>(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<short>(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<short>(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<int>(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<int>(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<long>(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<long>(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmObjectBase?(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmObjectBase?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator bool(RealmValue)
Converts a Realm
Declaration
public static explicit operator bool(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
bool | The bool stored in the Realm |
explicit operator byte(RealmValue)
Converts a Realm
Declaration
public static explicit operator byte(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
byte | The byte stored in the Realm |
explicit operator byte[]?(RealmValue)
Converts a Realm
Declaration
public static explicit operator byte[]?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
byte[] | The byte[]? stored in the Realm |
explicit operator char(RealmValue)
Converts a Realm
Declaration
public static explicit operator char(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
char | The char stored in the Realm |
explicit operator DateTimeOffset(RealmValue)
Converts a Realm
Declaration
public static explicit operator DateTimeOffset(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Date |
The Date |
explicit operator decimal(RealmValue)
Converts a Realm
Declaration
public static explicit operator decimal(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
decimal | The decimal stored in the Realm |
explicit operator double(RealmValue)
Converts a Realm
Declaration
public static explicit operator double(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
double | The double stored in the Realm |
explicit operator Guid(RealmValue)
Converts a Realm
Declaration
public static explicit operator Guid(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Guid | The Guid stored in the Realm |
explicit operator short(RealmValue)
Converts a Realm
Declaration
public static explicit operator short(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
short | The short stored in the Realm |
explicit operator int(RealmValue)
Converts a Realm
Declaration
public static explicit operator int(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
int | The int stored in the Realm |
explicit operator long(RealmValue)
Converts a Realm
Declaration
public static explicit operator long(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
long | The long stored in the Realm |
explicit operator Decimal128?(RealmValue)
Converts a Realm
Declaration
public static explicit operator Decimal128?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Decimal128? | The Decimal128? stored in the Realm |
explicit operator ObjectId?(RealmValue)
Converts a Realm
Declaration
public static explicit operator ObjectId?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Object |
The Object |
explicit operator RealmInteger<byte>?(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<byte>?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<short>?(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<short>?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<int>?(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<int>?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator RealmInteger<long>?(RealmValue)
Converts a Realm
Declaration
public static explicit operator RealmInteger<long>?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Realm |
The Realm |
explicit operator bool?(RealmValue)
Converts a Realm
Declaration
public static explicit operator bool?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
bool? | The bool? stored in the Realm |
explicit operator byte?(RealmValue)
Converts a Realm
Declaration
public static explicit operator byte?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
byte? | The byte? stored in the Realm |
explicit operator char?(RealmValue)
Converts a Realm
Declaration
public static explicit operator char?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
char? | The char? stored in the Realm |
explicit operator DateTimeOffset?(RealmValue)
Converts a Realm
Declaration
public static explicit operator DateTimeOffset?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Date |
The Date |
explicit operator decimal?(RealmValue)
Converts a Realm
Declaration
public static explicit operator decimal?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
decimal? | The decimal? stored in the Realm |
explicit operator double?(RealmValue)
Converts a Realm
Declaration
public static explicit operator double?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
double? | The double? stored in the Realm |
explicit operator Guid?(RealmValue)
Converts a Realm
Declaration
public static explicit operator Guid?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
Guid? | The Guid? stored in the Realm |
explicit operator short?(RealmValue)
Converts a Realm
Declaration
public static explicit operator short?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
short? | The short? stored in the Realm |
explicit operator int?(RealmValue)
Converts a Realm
Declaration
public static explicit operator int?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
int? | The int? stored in the Realm |
explicit operator long?(RealmValue)
Converts a Realm
Declaration
public static explicit operator long?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
long? | The long? stored in the Realm |
explicit operator float?(RealmValue)
Converts a Realm
Declaration
public static explicit operator float?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
float? | The float? stored in the Realm |
explicit operator float(RealmValue)
Converts a Realm
Declaration
public static explicit operator float(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
float | The float stored in the Realm |
explicit operator string?(RealmValue)
Converts a Realm
Declaration
public static explicit operator string?(RealmValue val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The Realm |
Returns
Type | Description |
---|---|
string | The string? stored in the Realm |
implicit operator RealmValue(Decimal128)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(Decimal128 val)
Parameters
Type | Name | Description |
---|---|---|
Decimal128 | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(ObjectId)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(ObjectId val)
Parameters
Type | Name | Description |
---|---|---|
Object |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<byte>)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<byte> val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<short>)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<short> val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<int>)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<int> val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<long>)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<long> val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmObjectBase?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmObjectBase? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmValue[]?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmValue[]? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(bool)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(bool val)
Parameters
Type | Name | Description |
---|---|---|
bool | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(byte)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(byte val)
Parameters
Type | Name | Description |
---|---|---|
byte | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(byte[]?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(byte[]? val)
Parameters
Type | Name | Description |
---|---|---|
byte[] | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(char)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(char val)
Parameters
Type | Name | Description |
---|---|---|
char | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(Dictionary<string, RealmValue>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(Dictionary<string, RealmValue>? val)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(List<RealmValue>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(List<RealmValue>? val)
Parameters
Type | Name | Description |
---|---|---|
List<Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(DateTimeOffset)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(DateTimeOffset val)
Parameters
Type | Name | Description |
---|---|---|
Date |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(decimal)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(decimal val)
Parameters
Type | Name | Description |
---|---|---|
decimal | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(double)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(double val)
Parameters
Type | Name | Description |
---|---|---|
double | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(Guid)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(Guid val)
Parameters
Type | Name | Description |
---|---|---|
Guid | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(short)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(short val)
Parameters
Type | Name | Description |
---|---|---|
short | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(int)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(int val)
Parameters
Type | Name | Description |
---|---|---|
int | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(long)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(long val)
Parameters
Type | Name | Description |
---|---|---|
long | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(Decimal128?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(Decimal128? val)
Parameters
Type | Name | Description |
---|---|---|
Decimal128? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(ObjectId?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(ObjectId? val)
Parameters
Type | Name | Description |
---|---|---|
Object |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<byte>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<byte>? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<short>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<short>? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<int>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<int>? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(RealmInteger<long>?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(RealmInteger<long>? val)
Parameters
Type | Name | Description |
---|---|---|
Realm |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(bool?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(bool? val)
Parameters
Type | Name | Description |
---|---|---|
bool? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(byte?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(byte? val)
Parameters
Type | Name | Description |
---|---|---|
byte? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(char?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(char? val)
Parameters
Type | Name | Description |
---|---|---|
char? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(DateTimeOffset?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(DateTimeOffset? val)
Parameters
Type | Name | Description |
---|---|---|
Date |
val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(decimal?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(decimal? val)
Parameters
Type | Name | Description |
---|---|---|
decimal? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(double?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(double? val)
Parameters
Type | Name | Description |
---|---|---|
double? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(Guid?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(Guid? val)
Parameters
Type | Name | Description |
---|---|---|
Guid? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(short?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(short? val)
Parameters
Type | Name | Description |
---|---|---|
short? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(int?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(int? val)
Parameters
Type | Name | Description |
---|---|---|
int? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(long?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(long? val)
Parameters
Type | Name | Description |
---|---|---|
long? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(float?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(float? val)
Parameters
Type | Name | Description |
---|---|---|
float? | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(float)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(float val)
Parameters
Type | Name | Description |
---|---|---|
float | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
implicit operator RealmValue(string?)
Implicitly constructs a Realm
Declaration
public static implicit operator RealmValue(string? val)
Parameters
Type | Name | Description |
---|---|---|
string | val | The value to store in the Realm |
Returns
Type | Description |
---|---|
Realm |
A Realm |
operator !=(RealmValue, RealmValue)
Compares two Realm
Declaration
public static bool operator !=(RealmValue left, RealmValue right)
Parameters
Type | Name | Description |
---|---|---|
Realm |
left | The left instance. |
Realm |
right | The right instance. |
Returns
Type | Description |
---|---|
bool |
|