Return a string[] instead of IEnumerable for the Fields property to get all fields

This commit is contained in:
Sebastian Dröge 2009-04-21 14:25:59 +02:00
parent be6d49095f
commit e48b6ffc51

View file

@ -190,11 +190,11 @@ public object this [string field] {
} }
} }
public IEnumerable Fields { public string[] Fields {
get { get {
ArrayList fields = new ArrayList (); string[] fields = new string[Count];
for (uint i = 0; i < Count; i++) for (uint i = 0; i < Count; i++)
fields.Add (NthFieldName (i)); fields[i] = NthFieldName (i);
return fields; return fields;
} }