public void DeserializeElement(XmlDeserializationContext context) { if (context.Reader.LocalName == "Foo") { Foo = "Foo is " + context.Reader.ReadElementContentAsString(); } else { context.AutoDeserializeElement(this); } }
protected override void DeserializeElement(XmlDeserializationContext context) { if (context == null) { throw new ArgumentNullException("context"); } if (context.Reader.Name == "allowedValueList") { allowed_values = new List <string> (); } context.AutoDeserializeElement(this); }
protected override void DeserializeElement(XmlDeserializationContext context) { context.AutoDeserializeElement(this); }
protected override void DeserializeElement (XmlDeserializationContext context) { context.AutoDeserializeElement (this); }
protected virtual void DeserializeElement(XmlDeserializationContext context) { context.AutoDeserializeElement(this); }