Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebRequest.GetResponse() method How to Implement "SESSION BASE" authendication? Pin
liubin_aluzi4-Jul-07 16:08
liubin_aluzi4-Jul-07 16:08 
Question[Message Deleted] Pin
mayvarma2-Jul-07 11:59
mayvarma2-Jul-07 11:59 
AnswerRe: need code for this app in C# Pin
Christian Graus2-Jul-07 12:08
protectorChristian Graus2-Jul-07 12:08 
AnswerHere ya go Pin
Jimmanuel2-Jul-07 12:48
Jimmanuel2-Jul-07 12:48 
GeneralRe: Here ya go Pin
Luc Pattyn2-Jul-07 12:55
sitebuilderLuc Pattyn2-Jul-07 12:55 
GeneralRe: Here ya go Pin
ruanr2-Jul-07 20:58
ruanr2-Jul-07 20:58 
AnswerRe: need code for this app in C# Pin
Dave Kreskowiak2-Jul-07 12:53
mveDave Kreskowiak2-Jul-07 12:53 
QuestionHow to call a base class virtual method instead Pin
mschuckmann2-Jul-07 10:45
mschuckmann2-Jul-07 10:45 
Given the following class hyerarcy I'm trying to figure out how to explicitly call the Base class implimentation of a virtual method (in this case Name()) instead of the Child class implimentation:

class Base
{
public virtual void Name()
{
Console.Writeline( "Base" );
}
};

class Child : Base
{
public override void Name()
{
Consol.Writeline( "Child" );
}
};


So far the only way I've been able to figure out how to do this is to impliment another method on Child, something like
...
public void BaseName()
{
base.Name();
}
...

But I don't want to have to impliment this method, I want to call the Base class Name method from outside of Child.

In C++ this would be done by using the static binding operator (:Smile | :) , like so.

Child c;
c.Base::Name();

It seems like there has to be something equivalent in C#.


Thanks
Matt Schuckmann
AnswerRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 10:54
mvePIEBALDconsult2-Jul-07 10:54 
GeneralRe: How to call a base class virtual method instead Pin
Pete O'Hanlon2-Jul-07 10:58
mvePete O'Hanlon2-Jul-07 10:58 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 11:37
mvePIEBALDconsult2-Jul-07 11:37 
GeneralRe: How to call a base class virtual method instead [modified] Pin
Luc Pattyn2-Jul-07 11:46
sitebuilderLuc Pattyn2-Jul-07 11:46 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 11:58
mschuckmann2-Jul-07 11:58 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 12:10
sitebuilderLuc Pattyn2-Jul-07 12:10 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 12:14
mschuckmann2-Jul-07 12:14 
GeneralRe: How to call a base class virtual method instead Pin
Weirdoz1210-Nov-09 17:59
Weirdoz1210-Nov-09 17:59 
AnswerRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 11:19
sitebuilderLuc Pattyn2-Jul-07 11:19 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 11:44
mschuckmann2-Jul-07 11:44 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 11:50
sitebuilderLuc Pattyn2-Jul-07 11:50 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 11:58
mvePIEBALDconsult2-Jul-07 11:58 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 12:06
sitebuilderLuc Pattyn2-Jul-07 12:06 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 13:35
mvePIEBALDconsult2-Jul-07 13:35 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 13:49
sitebuilderLuc Pattyn2-Jul-07 13:49 
QuestionHow many maximum Threads can be created in CLR Thread pool Pin
Tejashvini2-Jul-07 10:39
Tejashvini2-Jul-07 10:39 
AnswerRe: How many maximum Threads can be created in CLR Thread pool Pin
Pete O'Hanlon2-Jul-07 10:45
mvePete O'Hanlon2-Jul-07 10:45 

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.