> 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
> {
> }

As the 'X?' indicates that you want a nullable X, you must ensure that
X is a type that can be made nullable:

interface IB<X> : IA<X?>
  where X : struct
{
}

Fabian

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to