Collections in contract assembly

Mar 6, 2008 at 7:07 AM
Edited Mar 7, 2008 at 2:30 AM
hi all,

I don't know whether here is the right place to ask the following question. But I try to ask it in MSDN Forums » .NET Development » .NET Base Class Library forum but get no response. :( Please help me.

My question is:
1. Can I use IEnumerableContract<T> or ICollectionContract<T> in contract assembly? If YES, how to convert them from View to Contract?
2. If NO, does it mean that I can ONLY use IListContract<T> in contract assembly and convert IListContract<T> to the collection type (e.g.: IEnumerabale<T> or ReadOnlyCollection<T>)in adapter? If my guess is right, I suggest PipelineBuild add an attribute to indicate the Collection type in View and help user to convert IListContract<T> to specific Collection Type (e.g.: IEnumerable<T> or ICollection<T>).
3. How to use the type under System.AddIn.Contract.Collections?

Thanks in advance.