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.
Implements
IEquatable<T>
IComparable<T>
IConvertible
IFormattable
Assembly: Realm.dll
Syntax
public struct RealmInteger<T> : IEquatable<T>, IComparable<RealmInteger<T>>, IComparable<T>, IConvertible, IFormattable where T : struct, IComparable<T>, IFormattable
Type Parameters
Name |
Description |
T |
The integer type, represented by this RealmInteger<T>. Supported types are ,
, , and .
|
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
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
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
|
Improve this Doc
View Source
Declaration
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Type |
Name |
Description |
String |
format |
|
IFormatProvider |
formatProvider |
|
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
Implements
IEquatable<>
IComparable<>
IComparable<>
IConvertible
IFormattable
See Also