public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Value = null;
     PartialFailureErrors = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "value")
         {
             if (Value == null)
             {
                 Value = new List <Trial>();
             }
             var valueItem = new Trial();
             valueItem.ReadFrom(xItem);
             Value.Add(valueItem);
         }
         else if (localName == "partialFailureErrors")
         {
             if (PartialFailureErrors == null)
             {
                 PartialFailureErrors = new List <ApiError>();
             }
             var partialFailureErrorsItem = InstanceCreator.CreateApiError(xItem);
             partialFailureErrorsItem.ReadFrom(xItem);
             PartialFailureErrors.Add(partialFailureErrorsItem);
         }
     }
 }
예제 #2
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 Trial();
             Operand.ReadFrom(xItem);
         }
     }
 }
예제 #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 <Trial>();
             }
             var entriesItem = new Trial();
             entriesItem.ReadFrom(xItem);
             Entries.Add(entriesItem);
         }
     }
 }