Beispiel #1
0
 public override void Deserialize(XElement element)
 {
     if (element.HasAttribute("value"))
     {
         Value = new SingleValue();
         Value.Deserialize(element);
     }
 }
Beispiel #2
0
        public override void Deserialize(XElement element)
        {
            foreach (var subElement in element.SubElements("SingleValue"))
            {
                var singleValue = new SingleValue();
                singleValue.Deserialize(subElement);
            }

            foreach (var subElement in element.SubElements("ValueRange"))
            {
                var valueRange = new ValueRange();
                valueRange.Deserialize(subElement);
            }
        }
Beispiel #3
0
        public override void Deserialize(XElement element)
        {
            BitLength = int.Parse(element.GetAttributeValue("bitLength"));

            foreach (var subElement in element.SubElements("SingleValue"))
            {
                var singleValue = new SingleValue();
                singleValue.Deserialize(subElement);
            }

            foreach (var subElement in element.SubElements("ValueRange"))
            {
                var valueRange = new ValueRange();
                valueRange.Deserialize(subElement);
            }
        }