public override void Deserialize(XElement element) { if (element.HasAttribute("value")) { Value = new SingleValue(); Value.Deserialize(element); } }
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); } }
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); } }