Click here to Skip to main content
15,900,482 members
Home / Discussions / C#
   

C#

 
AnswerRe: Attempted to read and write protected memory Pin
kahkaha5-Nov-06 8:32
kahkaha5-Nov-06 8:32 
GeneralRe: Attempted to read and write protected memory Pin
Nadia Monalisa5-Nov-06 8:46
Nadia Monalisa5-Nov-06 8:46 
QuestionOposite / Inverse Color Pin
TeamWild5-Nov-06 7:07
TeamWild5-Nov-06 7:07 
AnswerRe: Oposite / Inverse Color Pin
Insincere Dave5-Nov-06 7:19
Insincere Dave5-Nov-06 7:19 
AnswerRe: Oposite / Inverse Color Pin
Guffa5-Nov-06 7:33
Guffa5-Nov-06 7:33 
GeneralRe: Oposite / Inverse Color Pin
Amar Chaudhary5-Nov-06 23:28
Amar Chaudhary5-Nov-06 23:28 
Questionoverride Pin
wanlim08175-Nov-06 5:47
wanlim08175-Nov-06 5:47 
AnswerRe: override Pin
Vega025-Nov-06 9:21
Vega025-Nov-06 9:21 
If you don't explicitly write override before a function name, the compiler assumes that you meant to create a new function.

See also this link from MSDN[^]:

"By default, C# methods are not virtual — if a method is declared as virtual, any class inheriting the method can implement its own version. To make a method virtual, the virtual modifier is used in the method declaration of the base class. The derived class can then override the base virtual method by using the override keyword or hide the virtual method in the base class by using the new keyword. If neither the override keyword nor the new keyword is specified, the compiler will issue a warning and the method in the derived class will hide the method in the base class. For more information, see Compiler Warning CS0108[^]."

In short, the code will compile just fine (perhaps with a warning), but it might produce results that you weren't expecting. Hope this helps! Smile | :)
Questionreading from a file Pin
arjunsasikumar5-Nov-06 4:04
arjunsasikumar5-Nov-06 4:04 
AnswerRe: reading from a file Pin
User 66585-Nov-06 4:44
User 66585-Nov-06 4:44 
AnswerRe: reading from a file Pin
Stefan Troschuetz5-Nov-06 4:44
Stefan Troschuetz5-Nov-06 4:44 
Questiondll AccessViolation Pin
ilmarga5-Nov-06 3:51
ilmarga5-Nov-06 3:51 
AnswerRe: dll AccessViolation Pin
Rob Graham5-Nov-06 5:09
Rob Graham5-Nov-06 5:09 
Questionsend and recieve bytes Pin
HRiazi5-Nov-06 3:20
HRiazi5-Nov-06 3:20 
AnswerRe: send and recieve bytes Pin
mertkan656-Nov-06 4:34
mertkan656-Nov-06 4:34 
QuestionGenerics/Collections return a specific object Pin
I_thought5-Nov-06 3:04
I_thought5-Nov-06 3:04 
AnswerRe: Generics/Collections return a specific object Pin
I_thought5-Nov-06 6:15
I_thought5-Nov-06 6:15 
AnswerRe: Generics/Collections return a specific object Pin
Judah Gabriel Himango5-Nov-06 12:26
sponsorJudah Gabriel Himango5-Nov-06 12:26 
Questionplz help: how can i open mht file in windows based form with C# Pin
mohamed magdi ali4-Nov-06 21:47
mohamed magdi ali4-Nov-06 21:47 
Questioncontrol . cs-->.dll Pin
rzvme4-Nov-06 21:31
rzvme4-Nov-06 21:31 
AnswerRe: control . cs-->.dll Pin
Stefan Troschuetz4-Nov-06 22:19
Stefan Troschuetz4-Nov-06 22:19 
AnswerRe: control . cs-->.dll Pin
Amar Chaudhary5-Nov-06 23:35
Amar Chaudhary5-Nov-06 23:35 
QuestionPlease HELP :: webbrowser within background worker [modified] Pin
Nadia Monalisa4-Nov-06 20:50
Nadia Monalisa4-Nov-06 20:50 
AnswerRe: Please HELP :: webbrowser within background worker Pin
Stefan Troschuetz4-Nov-06 22:28
Stefan Troschuetz4-Nov-06 22:28 
AnswerRe: Please HELP :: webbrowser within background worker Pin
Bradml5-Nov-06 0:46
Bradml5-Nov-06 0:46 

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.