Click here to Skip to main content
15,882,920 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Christian Graus24-Oct-02 12:52
protectorChristian Graus24-Oct-02 12:52 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Chris Austin24-Oct-02 9:53
Chris Austin24-Oct-02 9:53 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Jon Rista24-Oct-02 12:07
Jon Rista24-Oct-02 12:07 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Christian Graus23-Oct-02 21:16
protectorChristian Graus23-Oct-02 21:16 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Jon Rista23-Oct-02 21:29
Jon Rista23-Oct-02 21:29 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Stephane Rodriguez.23-Oct-02 21:28
Stephane Rodriguez.23-Oct-02 21:28 
GeneralRe: c# API for converting XSL-FO to PDF and other formats Pin
Philip Fitzsimons24-Oct-02 6:32
Philip Fitzsimons24-Oct-02 6:32 
Generalquestion about override and accessing base class methods Pin
Marc Clifton23-Oct-02 8:30
mvaMarc Clifton23-Oct-02 8:30 
Given:

class VirtualClass
{
    public virtual void VirtualMethod()
    {
        Console.WriteLine("VirtualClass:VirtualMethod");
    }
}

class OverrideClassA : VirtualClass
{
    public override void VirtualMethod()
    {
        Console.WriteLine("OverrideClassA:VirtualMethod");
        base.VirtualMethod();
    }
}

class OverrideClassB : OverrideClassA
{
    public override void VirtualMethod()
    {
        Console.WriteLine("OverrideClassB:VirtualMethod");
        base.VirtualMethod();
    }
}


and the instantiation:

OverrideClassB ocb=new OverrideClassB();

How can I access just the VirtualMethod in OverrideClassA? In C++, I used to be able to say ((OverrideClassA)ocb).VirtualMethod();, but this still invokes the "B" class method in C#.

How do I do this? (A typical case might be where I have an edit control that I've derived some functionality, and in a particular case, I want to use the base class' implementation).

Thanks,

Marc


Help! I'm an AI running around in someone's f*cked up universe simulator.
GeneralRe: question about override and accessing base class methods Pin
Mark Conger23-Oct-02 10:09
Mark Conger23-Oct-02 10:09 
GeneralRe: question about override and accessing base class methods Pin
Jon Rista23-Oct-02 18:42
Jon Rista23-Oct-02 18:42 
GeneralRe: question about override and accessing base class methods Pin
Mark Conger24-Oct-02 1:47
Mark Conger24-Oct-02 1:47 
GeneralRe: question about override and accessing base class methods Pin
Jon Rista26-Oct-02 10:27
Jon Rista26-Oct-02 10:27 
GeneralCollection within a Collection and "loading" advice Pin
Paul Watson23-Oct-02 0:38
sitebuilderPaul Watson23-Oct-02 0:38 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Riley23-Oct-02 0:52
Paul Riley23-Oct-02 0:52 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Watson23-Oct-02 1:19
sitebuilderPaul Watson23-Oct-02 1:19 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Riley23-Oct-02 1:26
Paul Riley23-Oct-02 1:26 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Riley23-Oct-02 1:32
Paul Riley23-Oct-02 1:32 
GeneralRe: Collection within a Collection and "loading" advice Pin
James T. Johnson23-Oct-02 0:53
James T. Johnson23-Oct-02 0:53 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Watson23-Oct-02 1:13
sitebuilderPaul Watson23-Oct-02 1:13 
GeneralRe: Collection within a Collection and "loading" advice Pin
James T. Johnson23-Oct-02 1:20
James T. Johnson23-Oct-02 1:20 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Watson23-Oct-02 1:59
sitebuilderPaul Watson23-Oct-02 1:59 
GeneralRe: Collection within a Collection and "loading" advice Pin
James T. Johnson23-Oct-02 2:28
James T. Johnson23-Oct-02 2:28 
GeneralRe: Collection within a Collection and "loading" advice Pin
Paul Watson23-Oct-02 3:12
sitebuilderPaul Watson23-Oct-02 3:12 
GeneralRe: Collection within a Collection and "loading" advice Pin
James T. Johnson23-Oct-02 3:26
James T. Johnson23-Oct-02 3:26 
GeneralRe: Collection within a Collection and "loading" advice Pin
Daniel Turini23-Oct-02 1:23
Daniel Turini23-Oct-02 1:23 

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.