Re: Reference base class (Stoyan)

Stoyan Damov <[email protected]> Fri, 6 Oct 2006 17:06:21 +0300
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
Nah :)

I was looking for something like this:

/// <summary> ... </summary>
class Base
{
    /// <...>
    protected Base(int x) {}
}

class Derived : Base
{
    /// <summary> <see cref="????? what ???"> </summary>
    public Derived(int x) : base(x) {}
}

On 10/6/06, Peter Osucha <[email protected]> wrote:
> 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(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>


--

Cheers,
Stoyan

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

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