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