Struct RealmInteger<T>
A structure representing an integer value in the database. It offers API to increment the value, which produces
correct merges during conflicts.
Assembly: Realm.dll
Syntax
[Preserve(AllMembers = true, Conditional = false)]
public struct RealmInteger<T> : IEquatable<T>, IComparable<RealmInteger<T>>, IComparable<T>, IConvertible, IFormattable where T : struct, IComparable<T>, IFormattable
Type Parameters
Methods
|
Improve this Doc
View Source
CompareTo(T)
Declaration
public int CompareTo(T other)
Parameters
Type |
Name |
Description |
T |
other |
|
Returns
|
Improve this Doc
View Source
CompareTo(RealmInteger<T>)
Declaration
public int CompareTo(RealmInteger<T> other)
Parameters
Returns
|
Improve this Doc
View Source
Decrement()
Decrements the integer value by 1. Inverse of Increment().
Declaration
public RealmInteger<T> Decrement()
Returns
|
Improve this Doc
View Source
Equals(T)
Declaration
public bool Equals(T other)
Parameters
Type |
Name |
Description |
T |
other |
|
Returns
|
Improve this Doc
View Source
Increment()
Increments the integer value by 1. Inverse of Decrement().
Declaration
public RealmInteger<T> Increment()
Returns
|
Improve this Doc
View Source
Increment(T)
Increment the integer value by a specified amount.
Declaration
public RealmInteger<T> Increment(T value)
Parameters
Type |
Name |
Description |
T |
value |
Value by which to increment.
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
Declaration
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Returns
Operators
|
Improve this Doc
View Source
Decrement(RealmInteger<T>)
Declaration
public static RealmInteger<T> operator --(RealmInteger<T> source)
Parameters
Returns
|
Improve this Doc
View Source
Equality(RealmInteger<T>, RealmInteger<T>)
Declaration
public static bool operator ==(RealmInteger<T> first, RealmInteger<T> second)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(T to RealmInteger<T>)
Declaration
public static implicit operator RealmInteger<T>(T i)
Parameters
Type |
Name |
Description |
T |
i |
|
Returns
|
Improve this Doc
View Source
Implicit(RealmInteger<T> to T)
Declaration
public static implicit operator T(RealmInteger<T> i)
Parameters
Returns
|
Improve this Doc
View Source
Increment(RealmInteger<T>)
Declaration
public static RealmInteger<T> operator ++(RealmInteger<T> source)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(RealmInteger<T>, RealmInteger<T>)
Declaration
public static bool operator !=(RealmInteger<T> first, RealmInteger<T> second)
Parameters
Returns
Explicit Interface Implementations
|
Improve this Doc
View Source
IConvertible.GetTypeCode()
Declaration
TypeCode IConvertible.GetTypeCode()
Returns
|
Improve this Doc
View Source
Declaration
bool IConvertible.ToBoolean(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
byte IConvertible.ToByte(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
char IConvertible.ToChar(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
DateTime IConvertible.ToDateTime(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
decimal IConvertible.ToDecimal(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
double IConvertible.ToDouble(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
short IConvertible.ToInt16(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
int IConvertible.ToInt32(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
long IConvertible.ToInt64(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
sbyte IConvertible.ToSByte(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
float IConvertible.ToSingle(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
string IConvertible.ToString(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
object IConvertible.ToType(Type conversionType, IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
ushort IConvertible.ToUInt16(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
uint IConvertible.ToUInt32(IFormatProvider provider)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
ulong IConvertible.ToUInt64(IFormatProvider provider)
Parameters
Returns
Implements
See Also