예제 #1
0
 // returns an array of RawResults
 internal                         RawResult[] GetArrayOfRawResults()
 {
     if (arr == null)
     {
         return(null);
     }
     else if (arr.Length == 0)
     {
         return(new RawResult[0]);
     }
     else
     {
         var rawResultArray = new RawResult[arr.Length];
         for (int i = 0; i < arr.Length; i++)
         {
             var rawResult = (RawResult)arr.GetValue(i);
             rawResultArray.SetValue(rawResult, i);
         }
         return(rawResultArray);
     }
 }
예제 #2
0
 // returns an array of RawResults
 internal RawResult[] GetArrayOfRawResults()
 {
     if (arr == null)
     {
         return null;
     }
     else if (arr.Length == 0)
     {
         return new RawResult[0];
     }
     else
     {
         var rawResultArray = new RawResult[arr.Length];
         for (int i = 0; i < arr.Length; i++)
         {
             var rawResult = (RawResult)arr.GetValue(i);
             rawResultArray.SetValue(rawResult, i);
         }
         return rawResultArray;
     }
 }