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