Reference base class (Stoyan)

Peter Osucha <[email protected]> Fri, 6 Oct 2006 08:54:56 -0400
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
Stoyan,

I'm not sure of your question.  You want to reference the constructor of a
base class from the constructor of a derived class?  If MyDerivedClass
derives from MyBaseClass and I want to reference (call?) the constructor of
MyBaseClass in the constructor of MyDerivedClass, I could do something
like...

Public MyDerivedClass( string Key, string Name, int Index, int HowMany)
            : base ( Key, Name, Index )
        {
            // do other stuff in this constructor
                _howMany = HowMany;
        }

However, I'm not sure if that's what you are looking for (but then, almost
everyone on this list knows a whole lot more about C# than I do so maybe
they do know what you mean ;-)).

Peter


> -----Original Message-----
> From: Discussion relating to the specifics of the C# and
> Managed C++ languages [mailto:[email protected]]
> On Behalf Of Stoyan Damov
> Sent: Friday, October 06, 2006 2:49 AM
> To: [email protected]
> Subject: Re: [DOTNET-CX] code documentation reports
>
> Slightly off-topic but how do you reference a constructor of
> a base class in <see /> or <seealso />?
>
> Cheers,
> Stoyan

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com