Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
QuestionAssistence required with this spacific Program Pin
Cihangir Giray Han4-Oct-12 22:01
Cihangir Giray Han4-Oct-12 22:01 
AnswerRe: Assistence required with this spacific Program Pin
Richard MacCutchan4-Oct-12 23:04
mveRichard MacCutchan4-Oct-12 23:04 
AnswerRe: Assistence required with this spacific Program Pin
V.5-Oct-12 0:41
professionalV.5-Oct-12 0:41 
QuestionHow to configure post-build events for setup/deployment projects in Visual Studio Pin
Tridip Bhattacharjee4-Oct-12 21:25
professionalTridip Bhattacharjee4-Oct-12 21:25 
AnswerRe: How to configure post-build events for setup/deployment projects in Visual Studio Pin
Richard MacCutchan4-Oct-12 21:50
mveRichard MacCutchan4-Oct-12 21:50 
GeneralRe: How to configure post-build events for setup/deployment projects in Visual Studio Pin
Tridip Bhattacharjee6-Oct-12 7:07
professionalTridip Bhattacharjee6-Oct-12 7:07 
GeneralRe: How to configure post-build events for setup/deployment projects in Visual Studio Pin
Richard MacCutchan6-Oct-12 7:18
mveRichard MacCutchan6-Oct-12 7:18 
QuestionBasic Polymorphism Problem Pin
AmbiguousName4-Oct-12 18:54
AmbiguousName4-Oct-12 18:54 
Hello. I am confronting basic polymorphic issue in my small project. Classes Layer1 use classes from Layer2. Here is my design for Layer1
public class BaseLayer1
{
  public virtual Function()
  {}
}

public class ChildLayer1 : BaseLayer1
{
  
  BaseLayer2 base2 = new BaseLayer2();

  public override Function()
  {
    base2.Function(); // Reaches Here. should go to base class in layer2 as well.
  }
}

Now overriden function in child class gets called here. But virtual function in base class from Layer2 is not getting called here (hence; in child classes of Layer2 as well) . Here is what I am trying
public class BaseLayer2
{
  public virtual Function()
  {}
}

public class Child1Layer2 : BaseLayer2		         // Child of BaseLayer2
{
  public override Function()
  {}
}

public class Child2Layer2 : Child1Layer2		// Child of Child1Layer2
{
  public override Function()
  {}
}

What's wrong with my understanding with polymorphism in c# ? Thanks for any pointers.

This world is going to explode due to international politics, SOON.

AnswerRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 20:29
professionalDaveyM694-Oct-12 20:29 
AnswerRe: Basic Polymorphism Problem Pin
AmbiguousName4-Oct-12 20:56
AmbiguousName4-Oct-12 20:56 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 21:35
professionalDaveyM694-Oct-12 21:35 
AnswerRe: Basic Polymorphism Problem Pin
AmbiguousName4-Oct-12 21:45
AmbiguousName4-Oct-12 21:45 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM694-Oct-12 22:18
professionalDaveyM694-Oct-12 22:18 
AnswerRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 0:52
BobJanova5-Oct-12 0:52 
GeneralRe: Basic Polymorphism Problem Pin
DaveyM695-Oct-12 1:19
professionalDaveyM695-Oct-12 1:19 
GeneralRe: Basic Polymorphism Problem Pin
BobJanova5-Oct-12 3:04
BobJanova5-Oct-12 3:04 
QuestionC# linq group by Pin
rachel_m4-Oct-12 17:43
rachel_m4-Oct-12 17:43 
AnswerRe: C# linq group by Pin
OriginalGriff4-Oct-12 23:19
mveOriginalGriff4-Oct-12 23:19 
GeneralRe: C# linq group by Pin
rachel_m5-Oct-12 2:48
rachel_m5-Oct-12 2:48 
GeneralRe: C# linq group by Pin
OriginalGriff5-Oct-12 3:29
mveOriginalGriff5-Oct-12 3:29 
QuestionCrystal Reports : Database Login Prompt Issue Pin
Quam Chang4-Oct-12 16:36
Quam Chang4-Oct-12 16:36 
AnswerRe: Crystal Reports : Database Login Prompt Issue Pin
AmbiguousName4-Oct-12 20:00
AmbiguousName4-Oct-12 20:00 
QuestionAggregate data into 5 min interval Pin
bad_kid4-Oct-12 11:59
bad_kid4-Oct-12 11:59 
QuestionC# linq Pin
rachel_m4-Oct-12 9:36
rachel_m4-Oct-12 9:36 
Question.exe Reference Problem - maybe Pin
dirsow4-Oct-12 7:52
dirsow4-Oct-12 7:52 

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.