Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObjectProperty.cs
1using System;
2using System.Collections.Generic;
3using System.Reflection;
5
7{
11 public class ObjectProperty : Property
12 {
13 private readonly Type objectType;
14 private readonly ObjectInfo info;
15
19 internal ObjectProperty(Type ObjectType, ObjectInfo Info)
20 : base()
21 {
22 this.objectType = ObjectType;
23 this.info = Info;
24 }
25
29 public override Type PropertyType => this.objectType;
30
36 public override void Serialize(Serializer Output, object Value)
37 {
38 this.info.Serialize(Output, Value);
39 }
40
47 public override object Deserialize(Deserializer Input, Type ExpectedType)
48 {
49 return this.info.Deserialize(Input, this.objectType);
50 }
51
52 }
53}
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