Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 12:36
sikp8-May-08 12:36 
GeneralRe: start IE without addressbar, status bar Pin
PIEBALDconsult8-May-08 13:57
mvePIEBALDconsult8-May-08 13:57 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 14:12
sikp8-May-08 14:12 
GeneralRe: start IE without addressbar, status bar Pin
DanB19838-May-08 21:34
DanB19838-May-08 21:34 
GeneralRe: start IE without addressbar, status bar Pin
sikp8-May-08 21:57
sikp8-May-08 21:57 
GeneralRe: start IE without addressbar, status bar Pin
DanB19838-May-08 22:01
DanB19838-May-08 22:01 
QuestionWriting a raytracer to learn the language... hit a problem.... Pin
bobmitch8-May-08 11:00
bobmitch8-May-08 11:00 
AnswerRe: Writing a raytracer to learn the language... hit a problem.... Pin
Colin Angus Mackay8-May-08 11:05
Colin Angus Mackay8-May-08 11:05 
bobmitch wrote:
This will always use the parent intersect function and not the appropriate child function


That is because in the derived classes you have used the "new" qualifier on the method declaration which tells the compiler to hide the implementation. The reference to the base does not know about your "new" implementation.

You need to declare the method as virtual on the base, and override on the derived classes.

public virtual Intersection()
{
   // This is the base implementation.
}

...

public override Intersection()
{
    // This is the derived implementation.
}


Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Introduction to LINQ to XML (Part 1) - (Part 2)

My website | Blog

QuestionNEW operator Pin
AlexPizzano8-May-08 10:48
AlexPizzano8-May-08 10:48 
AnswerRe: NEW operator Pin
Colin Angus Mackay8-May-08 11:02
Colin Angus Mackay8-May-08 11:02 
QuestionHow to free up memory in C# applications? Pin
Noemi Katinka8-May-08 9:29
Noemi Katinka8-May-08 9:29 
AnswerRe: How to free up memory in C# applications? Pin
Gareth H8-May-08 9:43
Gareth H8-May-08 9:43 
AnswerRe: How to free up memory in C# applications? Pin
Christian Graus8-May-08 11:10
protectorChristian Graus8-May-08 11:10 
AnswerRe: How to free up memory in C# applications? Pin
tgrt8-May-08 11:14
tgrt8-May-08 11:14 
AnswerRe: How to free up memory in C# applications? Pin
stano8-May-08 11:54
stano8-May-08 11:54 
QuestionOleDB DataReader not working Pin
Cozmo238-May-08 9:22
Cozmo238-May-08 9:22 
AnswerRe: OleDB DataReader not working Pin
Ennis Ray Lynch, Jr.8-May-08 9:26
Ennis Ray Lynch, Jr.8-May-08 9:26 
AnswerRe: OleDB DataReader not working Pin
deepu5559-May-08 12:09
deepu5559-May-08 12:09 
Questionurgent: tree diagram in C# .NET Pin
rasana8-May-08 9:16
rasana8-May-08 9:16 
AnswerRe: urgent: tree diagram in C# .NET Pin
Ennis Ray Lynch, Jr.8-May-08 9:19
Ennis Ray Lynch, Jr.8-May-08 9:19 
AnswerRe: urgent: tree diagram in C# .NET Pin
Gareth H8-May-08 9:38
Gareth H8-May-08 9:38 
AnswerRe: urgent: tree diagram in C# .NET Pin
Le centriste8-May-08 10:12
Le centriste8-May-08 10:12 
AnswerRe: urgent: tree diagram in C# .NET Pin
rasana15-May-08 5:19
rasana15-May-08 5:19 
QuestionWhat is the fastest way to update a UI from a thread? Pin
GuyThiebaut8-May-08 9:03
professionalGuyThiebaut8-May-08 9:03 
AnswerRe: What is the fastest way to update a UI from a thread? Pin
Ennis Ray Lynch, Jr.8-May-08 9:21
Ennis Ray Lynch, Jr.8-May-08 9:21 

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.