|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Adding contraints and inheritingHi All
A simple question I hope I have a class public abstract class authenticatedBoundForm<T> : authenticatedPage, IControlPage I want to add contraints to T specifially the new() contraint. How can I do this without T being forced to inherit/implement authenticatedPage, IControlPage Thanks Paul "Paul" <paul.tho***@corpoflondon.gov.uk> a écrit dans le message de news: 1158825894.588557.319***@i42g2000cwa.googlegroups.com...| public abstract class authenticatedBoundForm<T> : authenticatedPage, public abstract class authenticatedBoundForm<T> : authenticatedPage, | IControlPage | | I want to add contraints to T specifially the new() contraint. | | How can I do this without T being forced to inherit/implement | authenticatedPage, IControlPage IControlPage where T : new() T is not affected by the inheritance, only by the constraints. Joanna -- Joanna Carter [TeamB] Consultant Software Engineer |
|||||||||||||||||||||||