// 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); } }
// 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; } }