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 CampaignExtensionSetting();
             Operand.ReadFrom(xItem);
         }
     }
 }
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Value = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "value")
         {
             if (Value == null)
             {
                 Value = new List <CampaignExtensionSetting>();
             }
             var valueItem = new CampaignExtensionSetting();
             valueItem.ReadFrom(xItem);
             Value.Add(valueItem);
         }
     }
 }
コード例 #3
0
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Entries = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "entries")
         {
             if (Entries == null)
             {
                 Entries = new List <CampaignExtensionSetting>();
             }
             var entriesItem = new CampaignExtensionSetting();
             entriesItem.ReadFrom(xItem);
             Entries.Add(entriesItem);
         }
     }
 }