I suggest you ...

Allow to use an inherited constructor

If you inherit from a class you often have to write code where you just create a constructor and call the base class with the same parameters. It would be great, if I could use the constructors of the base class instead.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    AnonymousAnonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Metro SauperMetro Sauper commented  ·   ·  Flag as inappropriate

        This would be very improper to do automatically. I guess you could come up with some syntax to allow it to be explicitly specified. It also seems like you are more concerned with the Preamble Xml documentation related to the constructor and not having to duplicate it. It might be more appropriate to have a way in the preamble to indicate you want the specification to be the same as the base class.

      • AnonymousAnonymous commented  ·   ·  Flag as inappropriate

        I know, but if I have about 10 overloads of a constructor I have to write this for every overload just to add one method that can't be implemented as extension method. To have documentation I have at least 3 lines comment per constructor but much more if I want documentation for each parameter. I once overloaded a frameworkclass where I had about 100lines of code and comments for one method .. there must be a better way. If I at least could define with one line, that this constructor of the base class is also useable from the inherited class without the need to copy all the docu, it would by much smaller.

      Feedback and Knowledge Base