Click here to Skip to main content
11,647,037 members (78,110 online)
   

C#

 
GeneralRe: Manual Coding vs Code Generation Pin
Phanindra26116-Nov-12 7:56
memberPhanindra26116-Nov-12 7:56 
GeneralRe: Manual Coding vs Code Generation Pin
Marcus Kramer16-Nov-12 8:26
memberMarcus Kramer16-Nov-12 8:26 
AnswerRe: Manual Coding vs Code Generation Pin
Mycroft Holmes16-Nov-12 15:37
memberMycroft Holmes16-Nov-12 15:37 
GeneralRe: Manual Coding vs Code Generation Pin
PIEBALDconsult21-Nov-12 17:51
memberPIEBALDconsult21-Nov-12 17:51 
GeneralRe: Manual Coding vs Code Generation Pin
Mycroft Holmes21-Nov-12 18:46
memberMycroft Holmes21-Nov-12 18:46 
GeneralRe: Manual Coding vs Code Generation Pin
PIEBALDconsult22-Nov-12 9:51
memberPIEBALDconsult22-Nov-12 9:51 
AnswerRe: Manual Coding vs Code Generation Pin
PIEBALDconsult21-Nov-12 4:00
memberPIEBALDconsult21-Nov-12 4:00 
QuestionDesign Question Pin
TheGermoz15-Nov-12 17:31
memberTheGermoz15-Nov-12 17:31 
suppose I have a class A, and the interfaces I1 and I2.

Interfaces I1 contains methods a,b
Interfaces I2 contains methods a,b,c and d

class A can implements I1 or I2 depending on how it is constructed.

Question, what is the best structure to organize it?
one solution is to create a base class for Class A which implements only I1, and make Class A derived implementing I2:
Class BaseA:I1
Class A: I2, BaseA

Do you know any smarter solution?
AnswerRe: Design Question Pin
DaveyM6915-Nov-12 19:31
mentorDaveyM6915-Nov-12 19:31 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 20:11
memberTheGermoz15-Nov-12 20:11 
AnswerRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 21:43
memberRahul Rajat Singh15-Nov-12 21:43 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 23:14
memberTheGermoz15-Nov-12 23:14 
AnswerRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 23:22
memberRahul Rajat Singh15-Nov-12 23:22 
AnswerRe: Design Question Pin
BobJanova15-Nov-12 23:12
memberBobJanova15-Nov-12 23:12 
GeneralRe: Design Question Pin
TheGermoz15-Nov-12 23:16
memberTheGermoz15-Nov-12 23:16 
GeneralRe: Design Question Pin
Rahul Rajat Singh15-Nov-12 23:35
memberRahul Rajat Singh15-Nov-12 23:35 
GeneralRe: Design Question Pin
BobJanova16-Nov-12 0:09
memberBobJanova16-Nov-12 0:09 
AnswerRe: Design Question Pin
SledgeHammer0116-Nov-12 9:53
memberSledgeHammer0116-Nov-12 9:53 
GeneralRe: Design Question Pin
TheGermoz16-Nov-12 10:06
memberTheGermoz16-Nov-12 10:06 
AnswerRe: Design Question Pin
Clifford Nelson16-Nov-12 9:53
memberClifford Nelson16-Nov-12 9:53 
QuestionBackground worker thread Pin
MAW3015-Nov-12 14:54
memberMAW3015-Nov-12 14:54 
AnswerRe: Background worker thread Pin
DaveyM6915-Nov-12 18:51
mentorDaveyM6915-Nov-12 18:51 
QuestionArray, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 6:29
memberKKW_acd15-Nov-12 6:29 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
DaveyM6915-Nov-12 6:55
mentorDaveyM6915-Nov-12 6:55 
GeneralRe: Array, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 9:03
memberKKW_acd15-Nov-12 9:03 

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
Web04 | 2.8.150804.2 | Last Updated 4 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid