Exemplo n.º 1
0
 static object[] BuildObjectArray(ICollection<string> values)
 {
     var objects = new object[values.Count];
     int count = 0;
     foreach (string value in values)
     {
         objects[count++] = new BusinessObject(new[] {value});
     }
     return objects;
 }
Exemplo n.º 2
0
 private object[] BuildObjectArray(string[] values)
 {
     object[] objects = new object[values.Length];
     int count = 0;
     foreach (string value in values)
     {
         objects[count++] = new BusinessObject(new[] {value});
     }
     return objects;
 }