1. Generics: Inheritance and Interface questions
Hi, I would like to know two things about generics: 1. Can an interface be gerneric? I want the implementing class to be generic, so the interface has to be. 2. I have a gerneric class, which I want to use as a base class for my own. But in the subclass I do now the exact type which will be processed and I don't want anyone to have the ability of changing this. Is it possible to extend a gerneric base class with a non-gerneric class? And if so, how? Thanks a lot.. Stampede
2. inheritance/polymorphism and maybe generics question - CSharp/C#
3. Generics - Interface Syntax question
Hi group, i need a bit of help with this: public abstract class BusinessComponent<TData, TDataMapper> where TData : BusinessEntity,new() where TDataMapper : DataMappers.DataMapper<TData>, new() I want BusinessComponent to implement an interface i created, however i can't get the syntax right! what am i doing wrong? Thanks in advance Gonzalo
4. Question on interfaces and inheritance - CSharp/C#
5. question on inheritance of interfaces..
I have interface IAbc,IDef and interface IXyz inherits/implements(what is the right word) IAbc and IDef if i reflect the type IXyz it only shows me the members of IXyz and not IAbc and IDef. Why? TIA
6. Generics - A question on generics - delegates - runtime binding. - CSharp/C#
7. Generics - A question on generics - delegates - runtime bindin
Thank you for the reply but I do not think that is the reason. The delegate in class A is defined with the signature. It is this signature that should match against the methods in class B. And the methods in B do match. public delegate T GetValueDelegate(A<T> var); thanks, but I am still missing something.