Click here to Skip to main content
15,843,937 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebRequest.GetResponse() method How to Implement "SESSION BASE" authendication? Pin
liubin_aluzi4-Jul-07 17:08
liubin_aluzi4-Jul-07 17:08 
Question[Message Deleted] Pin
mayvarma2-Jul-07 12:59
mayvarma2-Jul-07 12:59 
AnswerRe: need code for this app in C# Pin
Christian Graus2-Jul-07 13:08
protectorChristian Graus2-Jul-07 13:08 
AnswerHere ya go Pin
Jimmanuel2-Jul-07 13:48
Jimmanuel2-Jul-07 13:48 
GeneralRe: Here ya go Pin
Luc Pattyn2-Jul-07 13:55
sitebuilderLuc Pattyn2-Jul-07 13:55 
GeneralRe: Here ya go Pin
ruanr2-Jul-07 21:58
ruanr2-Jul-07 21:58 
AnswerRe: need code for this app in C# Pin
Dave Kreskowiak2-Jul-07 13:53
mveDave Kreskowiak2-Jul-07 13:53 
QuestionHow to call a base class virtual method instead Pin
mschuckmann2-Jul-07 11:45
mschuckmann2-Jul-07 11: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 11:54
mvePIEBALDconsult2-Jul-07 11:54 
GeneralRe: How to call a base class virtual method instead Pin
Pete O'Hanlon2-Jul-07 11:58
subeditorPete O'Hanlon2-Jul-07 11:58 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 12:37
mvePIEBALDconsult2-Jul-07 12:37 
GeneralRe: How to call a base class virtual method instead [modified] Pin
Luc Pattyn2-Jul-07 12:46
sitebuilderLuc Pattyn2-Jul-07 12:46 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 12:58
mschuckmann2-Jul-07 12:58 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 13:10
sitebuilderLuc Pattyn2-Jul-07 13:10 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 13:14
mschuckmann2-Jul-07 13:14 
GeneralRe: How to call a base class virtual method instead Pin
Weirdoz1210-Nov-09 18:59
Weirdoz1210-Nov-09 18:59 
AnswerRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 12:19
sitebuilderLuc Pattyn2-Jul-07 12:19 
GeneralRe: How to call a base class virtual method instead Pin
mschuckmann2-Jul-07 12:44
mschuckmann2-Jul-07 12:44 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 12:50
sitebuilderLuc Pattyn2-Jul-07 12:50 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 12:58
mvePIEBALDconsult2-Jul-07 12:58 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 13:06
sitebuilderLuc Pattyn2-Jul-07 13:06 
GeneralRe: How to call a base class virtual method instead Pin
PIEBALDconsult2-Jul-07 14:35
mvePIEBALDconsult2-Jul-07 14:35 
GeneralRe: How to call a base class virtual method instead Pin
Luc Pattyn2-Jul-07 14:49
sitebuilderLuc Pattyn2-Jul-07 14:49 
QuestionHow many maximum Threads can be created in CLR Thread pool Pin
Tejashvini2-Jul-07 11:39
Tejashvini2-Jul-07 11:39 
AnswerRe: How many maximum Threads can be created in CLR Thread pool Pin
Pete O'Hanlon2-Jul-07 11:45
subeditorPete O'Hanlon2-Jul-07 11: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.