To interface or not to interface

Kagamin spam at here.lot
Mon May 24 23:26:02 PDT 2010

Recently I've hit a problem with collections in C#. Given classes
class A {}
class B {}
And two collections Collection<A> and Collection<B> it's possible to concat them into an array A[]. The efficient way to do it is to use CopyTo(T[],int) method, but it accepts only array of exact collection item's type, so I had to change the Collection<B> type to Collection<A>.

More information about the Digitalmars-d mailing list