I have a C# interface defined as so: public interface IMenuSecurityService { void SetSecurityFlags(List<MenuItem> items);
Quick question. Does a class have to implement a interface directly to be accepted, or can it be a child of a parent class that im开发者_高级运维plements it.
So I\'ve spent some time thinking about this and been all over google looking for a \'solution\' (the solution is most likely a matter of preference, but I\'m unsure about this). Below is the problem
I\'ve received a native COM ADOConnection which is stored in Variant. I would like to pass interface of this connection to the VCL wrapper TADOConnection. The problem is that either I am getting inval
I am trying to figure out how to apply the is operand or the instanceof in a case statement to determine which datatype a interface object belongs too. keep getting errors
I am creating a method that accepts a IOBJECT parameter. there is multiple class that implement this inte开发者_如何学Pythonrface. I need to figure out which type IOBJECT is. how would i go about doin
I am making sims like game and right now I am trying to figure out how I will structure my objects. Right now I am thinking to create a class called GameObject, the psuedo is below
I am creating objects for a game, they are all sprites. but I also want them to implement an interface. Is it possible to do both ? If not, how can i h开发者_StackOverflow中文版ave an object have the
As I was advised 开发者_JAVA技巧by PMD, I want to reduce coopling by using interfaces instead of implementation ...
I have two methods that do essentially the same thing, just with different types.I want to abstract out this functionality to some generic method and I think I could do it easily in C# with delegates,