T
TPS
I am trying to bind a listbox to my custom collection object.
My object implements IEnumerable and crashes when the bind event calls
myobject.GetEnumerator()
I get an Invalid Cast exception in this method:
Here is the class def.:
public class CSLAHeaderCOL : IEnumerable, ICollection
Here is the method that crashes:
public IEnumerator GetEnumerator()
{
return IEnumerator = (IEnumerator)this;
}
My object implements IEnumerable and crashes when the bind event calls
myobject.GetEnumerator()
I get an Invalid Cast exception in this method:
Here is the class def.:
public class CSLAHeaderCOL : IEnumerable, ICollection
Here is the method that crashes:
public IEnumerator GetEnumerator()
{
return IEnumerator = (IEnumerator)this;
}