Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DecimalProperty.cs
1using System;
2using System.Collections.Generic;
3using System.Reflection;
4
6{
11 {
15 public override Type PropertyType => typeof(decimal);
16
22 public override void Serialize(Serializer Output, object Value)
23 {
24 Output.WriteDecimal((decimal)Value);
25 }
26
33 public override object Deserialize(Deserializer Input, Type ExpectedType)
34 {
35 return Input.ReadDecimal();
36 }
37 }
38}
decimal ReadDecimal()
Reads a decimal number from the input.
override void Serialize(Serializer Output, object Value)
Serializes the property value of an object.
override object Deserialize(Deserializer Input, Type ExpectedType)
Deserializes the property value
void WriteDecimal(decimal Value)
Writes a decimal number to the output.
Definition: Serializer.cs:269