Class Int53Attribute
Specifies that this 64-bit integer uses no more than 53 bits to represent its value.
This is used to indicate that large numbers are safe for direct serialization into formats which do support 64-bit integers natively (such as JSON).
Namespace: DisCatSharp.Common.Serialization
Assembly: DisCatSharp.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public sealed class Int53Attribute : SerializationAttribute
Fields
| Improve this Doc View SourceMAX_VALUE
Gets the maximum safe value representable as an integer by a IEEE754 64-bit binary floating point value.
This value equals to 9007199254740991.
Declaration
public const long MAX_VALUE = 9007199254740991L
Field Value
Type | Description |
---|---|
System.Int64 |
MIN_VALUE
Gets the minimum safe value representable as an integer by a IEEE754 64-bit binary floating point value.
This value equals to -9007199254740991.
Declaration
public const long MIN_VALUE = -9007199254740991L
Field Value
Type | Description |
---|---|
System.Int64 |