I want to add interfaces to classes in code. class FooAnd<X> : Foo,X { } . . . . . void XYZ() { FooAnd<Bar> fooAndBar = new FooAnd<Bar>(); }
you can almost do it by wrapping X with an interface decorator interface Iam<X> { X GetX(); } class FooAnd<X> : Foo,Iam<X> { } .... but it's not quite the same. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com