Mark Nicholls <[EMAIL PROTECTED]> wrote: > Sorry to bombard with generic questions... > > I've just come across > > interface IA<X> > { > ... > } > > interface IB<X> : IA<X?> // yes the '?' is not a typo > { > } > > it does compile...it gives > > The type 'A' must be a non-nullable value type in order to use it as > parameter 'T' in the generic type or method 'System.Nullable<T>' > > i.e. it understands what the T is....but I don't.
Is there a question in there? 'T?' is short for 'System.Nullable<T>', but it is constrained to value types. -- Barry -- http://barrkel.blogspot.com/ =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com