Return a string[] instead of IEnumerable for the Fields property to get all fields
This commit is contained in:
parent
be6d49095f
commit
e48b6ffc51
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user