Namespace DisCatSharp.Common.Serialization
Classes
- ComplexDecomposer
Decomposes Complex numbers into tuples (arrays of 2).
- DateTimeFormatAttribute
Defines the format for string-serialized DateTime and DateTimeOffset objects.
- DecomposerAttribute
Specifies a decomposer for a given type or property.
- 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).
- NumericEnumAttribute
Specifies that this enum should be serialized and deserialized as its underlying numeric type.
This is used to change the behaviour of enum serialization.
- SerializationAttribute
ABC for serialization attributes.
- StringEnumAttribute
Specifies that this enum should be serialized and deserialized as its string representation.
This is used to change the behaviour of enum serialization.
- TimeSpanFormatAttribute
Defines the format for string-serialized TimeSpan objects.
- TimeSpanMillisecondsAttribute
Specifies that this TimeSpan will be serialized as a number of whole milliseconds.
This value will always be serialized as a number.
- TimeSpanSecondsAttribute
Specifies that this TimeSpan will be serialized as a number of whole seconds.
This value will always be serialized as a number.
- UnixMillisecondsAttribute
Specifies that this DateTime or DateTimeOffset will be serialized as Unix timestamp milliseconds.
This value will always be serialized as a number.
- UnixSecondsAttribute
Specifies that this DateTime or DateTimeOffset will be serialized as Unix timestamp seconds.
This value will always be serialized as a number.
Interfaces
- IDecomposer
Provides an interface to decompose an object into another object or combination of objects.
Enums
- DateTimeFormatKind
Defines which built-in format to use for for DateTime and DateTimeOffset serialization.
See https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings and https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings for more details.
- TimeSpanFormatKind
Defines which built-in format to use for TimeSpan serialization.
See https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-timespan-format-strings and https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-timespan-format-strings for more details.