Example #1
0
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Operand = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "operand")
         {
             Operand = new AdParam();
             Operand.ReadFrom(xItem);
         }
     }
 }
 public virtual void ReadFrom(XElement xE)
 {
     Rval = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "rval")
         {
             if (Rval == null)
             {
                 Rval = new List <AdParam>();
             }
             var rvalItem = new AdParam();
             rvalItem.ReadFrom(xItem);
             Rval.Add(rvalItem);
         }
     }
 }
 public virtual void ReadFrom(XElement xE)
 {
     Entries         = null;
     TotalNumEntries = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "entries")
         {
             if (Entries == null)
             {
                 Entries = new List <AdParam>();
             }
             var entriesItem = new AdParam();
             entriesItem.ReadFrom(xItem);
             Entries.Add(entriesItem);
         }
         else if (localName == "totalNumEntries")
         {
             TotalNumEntries = int.Parse(xItem.Value);
         }
     }
 }