Click here to Skip to main content
       

C#

 
AnswerRe: Manual Coding vs Code Generation PinmemberMycroft Holmes16-Nov-12 15:37 
GeneralRe: Manual Coding vs Code Generation PinmemberPIEBALDconsult21-Nov-12 17:51 
GeneralRe: Manual Coding vs Code Generation PinmemberMycroft Holmes21-Nov-12 18:46 
GeneralRe: Manual Coding vs Code Generation PinmemberPIEBALDconsult22-Nov-12 9:51 
AnswerRe: Manual Coding vs Code Generation PinmemberPIEBALDconsult21-Nov-12 4:00 
QuestionDesign Question PinmemberTheGermoz15-Nov-12 17:31 
AnswerRe: Design Question PinmentorDaveyM6915-Nov-12 19:31 
GeneralRe: Design Question PinmemberTheGermoz15-Nov-12 20:11 
may be not clear my question:
 
I2 has "a" and "b" methods that are the same of I1
So I2:I1
 
But the class A not always is able to implement I2. It depend on the constructor used in A. If A is instantiated using a contructor, then A implement I2, otherwise only I1.
This is why I create a base class
So:
I2:I1
BaseA: I1
A:BaseA, I2
 
This is the herarchy, it works, but it looks a bit overkilling for the simple problem. I was only asking if there is a more elegant solution..
AnswerRe: Design Question PinmemberRahul Rajat Singh15-Nov-12 21:43 
GeneralRe: Design Question PinmemberTheGermoz15-Nov-12 23:14 
AnswerRe: Design Question PinmemberRahul Rajat Singh15-Nov-12 23:22 
AnswerRe: Design Question PinmemberBobJanova15-Nov-12 23:12 
GeneralRe: Design Question PinmemberTheGermoz15-Nov-12 23:16 
GeneralRe: Design Question PinmemberRahul Rajat Singh15-Nov-12 23:35 
GeneralRe: Design Question PinmemberBobJanova16-Nov-12 0:09 
AnswerRe: Design Question PinmemberSledgeHammer0116-Nov-12 9:53 
GeneralRe: Design Question PinmemberTheGermoz16-Nov-12 10:06 
AnswerRe: Design Question PinmemberClifford Nelson16-Nov-12 9:53 
QuestionBackground worker thread PinmemberMAW3015-Nov-12 14:54 
AnswerRe: Background worker thread PinmentorDaveyM6915-Nov-12 18:51 
QuestionArray, Struct, Class??? I'm so confused.... PinmemberKKW_acd15-Nov-12 6:29 
AnswerRe: Array, Struct, Class??? I'm so confused.... [modified] PinmentorDaveyM6915-Nov-12 6:55 
GeneralRe: Array, Struct, Class??? I'm so confused.... PinmemberKKW_acd15-Nov-12 9:03 
AnswerRe: Array, Struct, Class??? I'm so confused.... PinmentorDaveyM6915-Nov-12 19:02 
GeneralRe: Array, Struct, Class??? I'm so confused.... PinmvpRichard MacCutchan16-Nov-12 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 28 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid