分享方式:


Why doesn't C# support default parameters?

A post in the new C# FAQ Blog. The items will be showing up on the C# dev center in the near future.

Comments

  • Anonymous
    May 24, 2004
    Hi! Eric

    I couldn't get the part --

    "The overloading model works better in this respect. The framework author just defines two separate methods, and the single-parameter one calls the two-parameter method. This keeps the default value in the framework, where it can be modified if necessary."

    I would appreciate it if you can explain the details of the process.

    With Regards
    Prapti