Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compare 2 datasets Pin
Anu SE23-Sep-07 21:22
Anu SE23-Sep-07 21:22 
GeneralRe: Compare 2 datasets Pin
Jintal Patel24-Sep-07 0:59
Jintal Patel24-Sep-07 0:59 
AnswerRe: Compare 2 datasets Pin
Lutosław24-Sep-07 0:51
Lutosław24-Sep-07 0:51 
QuestionVirtual Function and "New" modifier Pin
.NET- India 23-Sep-07 19:44
.NET- India 23-Sep-07 19:44 
AnswerRe: Virtual Function and "New" modifier Pin
Nitin S23-Sep-07 20:18
professionalNitin S23-Sep-07 20:18 
GeneralRe: Virtual Function and "New" modifier Pin
Malcolm Smart23-Sep-07 21:17
Malcolm Smart23-Sep-07 21:17 
GeneralRe: Virtual Function and "New" modifier Pin
Lutosław24-Sep-07 0:10
Lutosław24-Sep-07 0:10 
GeneralRe: Virtual Function and "New" modifier Pin
Malcolm Smart24-Sep-07 0:35
Malcolm Smart24-Sep-07 0:35 
gajatko wrote:
Nb. if A.SomeMethod would be virtual and overriden in B, then "New called" would be displayed.


Exactly - it is virtual, so the overridden method would be called.

gajatko wrote:
public new void SomeMethod()


In class B, you have modified the method as 'new', which removes any inheritance of that method. Type A has no knowledge what so ever of this method now.

gajatko wrote:
A instance = new B();


You instantiate a static member of type A with a dynamic instance of type B. Calling the method on this instance will invoke the Type A method, as that is the only method matching the signature, and it has not been overriden.

( I think...!! )Big Grin | :-D

"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF


"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

QuestionMessage Removed Pin
23-Sep-07 19:34
professionalNitin S23-Sep-07 19:34 
AnswerRe: How to play mp3 files using c#??? [modified] Pin
Malcolm Smart23-Sep-07 20:59
Malcolm Smart23-Sep-07 20:59 
GeneralRe: How to play mp3 files using c#??? [modified] Pin
Nitin S23-Sep-07 21:31
professionalNitin S23-Sep-07 21:31 
GeneralRe: How to play mp3 files using c#??? Pin
Malcolm Smart23-Sep-07 21:37
Malcolm Smart23-Sep-07 21:37 
GeneralRe: How to play mp3 files using c#??? Pin
Vasudevan Deepak Kumar2-Oct-07 17:48
Vasudevan Deepak Kumar2-Oct-07 17:48 
GeneralAn apology Pin
Malcolm Smart23-Sep-07 21:55
Malcolm Smart23-Sep-07 21:55 
GeneralAn request Pin
Nitin S23-Sep-07 22:17
professionalNitin S23-Sep-07 22:17 
GeneralRe: An request Pin
originSH23-Sep-07 22:23
originSH23-Sep-07 22:23 
GeneralRe: An request [modified] Pin
Nitin S23-Sep-07 22:40
professionalNitin S23-Sep-07 22:40 
GeneralRe: An request Pin
Malcolm Smart23-Sep-07 22:51
Malcolm Smart23-Sep-07 22:51 
GeneralRe: An apology taken back... Pin
Malcolm Smart23-Sep-07 22:31
Malcolm Smart23-Sep-07 22:31 
QuestionWho thinks they can crack the famous ipod? Pin
MarkB77723-Sep-07 19:08
MarkB77723-Sep-07 19:08 
AnswerRe: Who thinks they can crack the famous ipod? Pin
Pete O'Hanlon23-Sep-07 21:45
mvePete O'Hanlon23-Sep-07 21:45 
QuestionPossibilities for 'Out of Memory Exception' Pin
ilango gandhi23-Sep-07 19:02
ilango gandhi23-Sep-07 19:02 
AnswerRe: Possibilities for 'Out of Memory Exception' Pin
Christian Graus23-Sep-07 19:07
protectorChristian Graus23-Sep-07 19:07 
AnswerRe: Possibilities for 'Out of Memory Exception' Pin
Nouman Bhatti23-Sep-07 19:23
Nouman Bhatti23-Sep-07 19:23 
GeneralRe: Possibilities for 'Out of Memory Exception' Pin
Harkamal Singh23-Sep-07 20:46
Harkamal Singh23-Sep-07 20: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.