Don
Not really. You aren't required to implement anything beyond what
CollectionBase implements.
You have two ways of doing this. First, you could get the PropertyInfo
for the indexer and see the type that it returns. This assumes you have
indexers on all of your typed collections. The second is to attach an
attribute to the class which exposes the type that it exposes.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Don D" <Do**@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com...
I have a Strongly Typed collection ex:
public class MyClassCollection : CollectionBase
{
... implemention ....
}
public class MyClass
{}
Is there a way using reflection to get the type the StronglyTyped
collection
"MyClassCollection" expects?
Thanks,
--
Don DenUyl
Diamond Systems