Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i call this method or function in c# ? urgent!! Pin
Deresen27-Feb-09 4:59
Deresen27-Feb-09 4:59 
GeneralRe: how can i call this method or function in c# ?! Pin
yassir hannoun27-Feb-09 5:09
yassir hannoun27-Feb-09 5:09 
GeneralRe: how can i call this method or function in c# ?! Pin
Deresen27-Feb-09 5:18
Deresen27-Feb-09 5:18 
GeneralRe: how can i call this method or function in c# ?! Pin
yassir hannoun27-Feb-09 6:15
yassir hannoun27-Feb-09 6:15 
AnswerThe easy way Pin
Ennis Ray Lynch, Jr.27-Feb-09 6:02
Ennis Ray Lynch, Jr.27-Feb-09 6:02 
GeneralRe: The easy way Pin
yassir hannoun27-Feb-09 6:17
yassir hannoun27-Feb-09 6:17 
QuestionReduce the resolution of a PDF Pin
abbd27-Feb-09 4:05
abbd27-Feb-09 4:05 
RantRe: Reduce the resolution of a PDF Pin
Curtis Schlak.27-Feb-09 4:08
Curtis Schlak.27-Feb-09 4:08 
Question[sound recording using C#] anyone help me? [modified] Pin
pavelnaru27-Feb-09 3:48
pavelnaru27-Feb-09 3:48 
AnswerRe: [sound recording using C#] anyone help me? Pin
Deresen27-Feb-09 3:54
Deresen27-Feb-09 3:54 
GeneralRe: [sound recording using C#] anyone help me? Pin
EliottA27-Feb-09 5:07
EliottA27-Feb-09 5:07 
JokeRe: [sound recording using C#] anyone help me? Pin
Jim Crafton27-Feb-09 7:18
Jim Crafton27-Feb-09 7:18 
Questionapp.config issue Pin
George_George27-Feb-09 2:56
George_George27-Feb-09 2:56 
AnswerRe: app.config issue Pin
Mirko198027-Feb-09 3:26
Mirko198027-Feb-09 3:26 
GeneralRe: app.config issue Pin
George_George27-Feb-09 22:43
George_George27-Feb-09 22:43 
AnswerRe: app.config issue Pin
Alan N27-Feb-09 3:43
Alan N27-Feb-09 3:43 
GeneralRe: app.config issue Pin
George_George27-Feb-09 22:41
George_George27-Feb-09 22:41 
GeneralRe: app.config issue Pin
Alan N2-Mar-09 3:04
Alan N2-Mar-09 3:04 
GeneralRe: app.config issue Pin
George_George2-Mar-09 3:34
George_George2-Mar-09 3:34 
GeneralRe: app.config issue Pin
Alan N2-Mar-09 5:06
Alan N2-Mar-09 5:06 
GeneralRe: app.config issue Pin
George_George2-Mar-09 19:15
George_George2-Mar-09 19:15 
QuestionInheritance Problem in C# Pin
But_Im_a_Lady27-Feb-09 2:25
But_Im_a_Lady27-Feb-09 2:25 
AnswerRe: Inheritance Problem in C# [modified] Pin
Luc Pattyn27-Feb-09 2:39
sitebuilderLuc Pattyn27-Feb-09 2:39 
GeneralRe: Inheritance Problem in C# Pin
PIEBALDconsult27-Feb-09 4:27
mvePIEBALDconsult27-Feb-09 4:27 
AnswerRe: Inheritance Problem in C# Pin
Curtis Schlak.27-Feb-09 4:07
Curtis Schlak.27-Feb-09 4:07 
If you're asking about multiple inheritance, that is, a class SpecialistDays that inherits from both SpecialistDay and Days, then, unfortunately, you can't do that in .NET. This could also lead to the Fragile Base Class[^] problem if your base classes change a lot; this problem lead to the famous article Why extends is evil[^], a Java-based discussion that is completely applicable to the C# world.

Perhaps you want to do the following:
public interface IDay {...}
public interface IDays {...}
public interface ISpecialistDay : IDay {...}
public interface ISpecialistDays : IDays {...}

// With implementations like

public Day : IDay {...}
public Days : IDays {...}
public SpecialistDay : ISpecialistDay
{
  ... ISpecialistDay methods here ...
  ... method proxies for IDay methods to internal Day ...

  private Day _internalDay;
}
public SpecialistDays : ISpecialistDays
{
  ... ISpecialistDays methods here ...
  ... method proxies for ISpecialistDay methods to internal Days ...

  private Days _internalDays;
}
This way you get the inheritance of the methods without worrying about implementation.

You don't see a lot of this in C#/VB.NET because creating partial proxy objects often feels painful. Alas, it's what we've got.

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty

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

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