Click here to Skip to main content
15,914,384 members
Home / Discussions / C#
   

C#

 
AnswerRe: replace value in XML file Pin
Bart7Simpson75-Nov-06 11:57
Bart7Simpson75-Nov-06 11:57 
QuestionCan BinaryWriter write strings? Pin
Lord Kixdemp5-Nov-06 10:21
Lord Kixdemp5-Nov-06 10:21 
AnswerRe: Can BinaryWriter write strings? Pin
Guffa5-Nov-06 10:46
Guffa5-Nov-06 10:46 
GeneralRe: Can BinaryWriter write strings? Pin
Lord Kixdemp5-Nov-06 13:01
Lord Kixdemp5-Nov-06 13:01 
GeneralRe: Can BinaryWriter write strings? Pin
Guffa5-Nov-06 13:52
Guffa5-Nov-06 13:52 
QuestionAttempted to read and write protected memory Pin
Nadia Monalisa5-Nov-06 7:55
Nadia Monalisa5-Nov-06 7:55 
AnswerRe: Attempted to read and write protected memory Pin
Rob Graham5-Nov-06 8:06
Rob Graham5-Nov-06 8:06 
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 

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.