예제 #1
0
 public void DeserializeElement(XmlDeserializationContext context)
 {
     if (context.Reader.LocalName == "Foo")
     {
         Foo = "Foo is " + context.Reader.ReadElementContentAsString();
     }
     else
     {
         context.AutoDeserializeElement(this);
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 protected override void DeserializeElement(XmlDeserializationContext context)
 {
     context.AutoDeserializeElement(this);
 }
예제 #4
0
 protected override void DeserializeElement (XmlDeserializationContext context)
 {
     context.AutoDeserializeElement (this);
 }
예제 #5
0
 protected virtual void DeserializeElement(XmlDeserializationContext context)
 {
     context.AutoDeserializeElement(this);
 }