C# documentation update after method signature changeHow do I intercept a method call in C#?Pass Method as Parameter using C#Get only Methods with specific signature out of Type.GetMethods()Making a private method public to unit test it…good idea?How to call asynchronous method from synchronous method in C#?Writing method without declaring type of thatWhy not inherit from List<T>?EventSource - Unable to get method signature changes to applyObtaining method signatures types and namesHow to change starting point of a C# program to another method?

Exactly which act of bravery are Luke and Han awarded a medal for?

Visual Studio Code download existing code

How do I minimise waste on a flight?

Is the tensor product (of vector spaces) commutative?

How to explain intravenous drug abuse to a 6-year-old?

How to avoid making self and former employee look bad when reporting on fixing former employee's work?

How could a civilization detect tachyons?

Opposite party turned away from voting when ballot is all opposing party

Was Mohammed the most popular first name for boys born in Berlin in 2018?

Colorless commander using lands that chose based upon identity?

Whose birthyears are canonically established in the MCU?

What happens when the drag force exceeds the weight of an object falling into earth?

Mindfulness of Watching Youtube

Is it a good idea to copy a trader when investing?

How would an instant or sorcery with an effect that targets work with Feather?

When was it publicly revealed that a KH-11 spy satellite took pictures of the first Shuttle flight?

Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1

The unknown and unexplained in science fiction

Why did Yoast put a no-index tag in my XML sitemap?

What will Doctor Strange protect now?

Is there an idiom that means "revealing a secret unintentionally"?

What's the difference between "ricochet" and "bounce"?

How to append code verbatim to .bashrc?

What are my options legally if NYC company is not paying salary?



C# documentation update after method signature change


How do I intercept a method call in C#?Pass Method as Parameter using C#Get only Methods with specific signature out of Type.GetMethods()Making a private method public to unit test it…good idea?How to call asynchronous method from synchronous method in C#?Writing method without declaring type of thatWhy not inherit from List<T>?EventSource - Unable to get method signature changes to applyObtaining method signatures types and namesHow to change starting point of a C# program to another method?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















In C# I use /// for documenting methods. Is there any possible way how to update this documentation after method signature changes (without loosing information already entered)?



For example. I already have:



/// <summary>
/// Example method for my question.
/// </summary>
/// <param name="userName">User name</param>
public void SomeMethod(string userName)




I would like to update method documentation after method changes to:



public void SomeMethod(string userName, int age)




Edit: I'm looking for some automated solution for this task.










share|improve this question
























  • You can manually edit the XML. In this case just add /// <param name="age">Age</param>

    – Henk Holterman
    Mar 23 at 7:11











  • Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

    – BionicCode
    Mar 23 at 7:14












  • If you are a student then Resharper is free.

    – BionicCode
    Mar 23 at 7:21











  • Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

    – Lenka Bendová
    Mar 23 at 8:02

















0















In C# I use /// for documenting methods. Is there any possible way how to update this documentation after method signature changes (without loosing information already entered)?



For example. I already have:



/// <summary>
/// Example method for my question.
/// </summary>
/// <param name="userName">User name</param>
public void SomeMethod(string userName)




I would like to update method documentation after method changes to:



public void SomeMethod(string userName, int age)




Edit: I'm looking for some automated solution for this task.










share|improve this question
























  • You can manually edit the XML. In this case just add /// <param name="age">Age</param>

    – Henk Holterman
    Mar 23 at 7:11











  • Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

    – BionicCode
    Mar 23 at 7:14












  • If you are a student then Resharper is free.

    – BionicCode
    Mar 23 at 7:21











  • Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

    – Lenka Bendová
    Mar 23 at 8:02













0












0








0








In C# I use /// for documenting methods. Is there any possible way how to update this documentation after method signature changes (without loosing information already entered)?



For example. I already have:



/// <summary>
/// Example method for my question.
/// </summary>
/// <param name="userName">User name</param>
public void SomeMethod(string userName)




I would like to update method documentation after method changes to:



public void SomeMethod(string userName, int age)




Edit: I'm looking for some automated solution for this task.










share|improve this question
















In C# I use /// for documenting methods. Is there any possible way how to update this documentation after method signature changes (without loosing information already entered)?



For example. I already have:



/// <summary>
/// Example method for my question.
/// </summary>
/// <param name="userName">User name</param>
public void SomeMethod(string userName)




I would like to update method documentation after method changes to:



public void SomeMethod(string userName, int age)




Edit: I'm looking for some automated solution for this task.







c# documentation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 7:21







Lenka Bendová

















asked Mar 23 at 7:03









Lenka BendováLenka Bendová

33




33












  • You can manually edit the XML. In this case just add /// <param name="age">Age</param>

    – Henk Holterman
    Mar 23 at 7:11











  • Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

    – BionicCode
    Mar 23 at 7:14












  • If you are a student then Resharper is free.

    – BionicCode
    Mar 23 at 7:21











  • Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

    – Lenka Bendová
    Mar 23 at 8:02

















  • You can manually edit the XML. In this case just add /// <param name="age">Age</param>

    – Henk Holterman
    Mar 23 at 7:11











  • Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

    – BionicCode
    Mar 23 at 7:14












  • If you are a student then Resharper is free.

    – BionicCode
    Mar 23 at 7:21











  • Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

    – Lenka Bendová
    Mar 23 at 8:02
















You can manually edit the XML. In this case just add /// <param name="age">Age</param>

– Henk Holterman
Mar 23 at 7:11





You can manually edit the XML. In this case just add /// <param name="age">Age</param>

– Henk Holterman
Mar 23 at 7:11













Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

– BionicCode
Mar 23 at 7:14






Beside from doing it manually you can use refactoring tools like Resharper. But it's not free. Maybe you find a free refactoring tool that also refactors XML comments. But renaming is supported by Visual Studio.

– BionicCode
Mar 23 at 7:14














If you are a student then Resharper is free.

– BionicCode
Mar 23 at 7:21





If you are a student then Resharper is free.

– BionicCode
Mar 23 at 7:21













Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

– Lenka Bendová
Mar 23 at 8:02





Thank you guys. I'm going to do it with Resharper trial version. I've tried to find something free with no luck.

– Lenka Bendová
Mar 23 at 8:02












1 Answer
1






active

oldest

votes


















1














Have a look at GhostDoc. It's on the visual studio marketplace too.



I've used the free version which will document methods for you (and update them). Just place the cursor on the method definition and press CTRL + SHIFT + D (by default) to update method/class documentation.



Below would be the result after updating your example:



/// <summary>
/// Example method for my question.
/// </summary>
/// <param name="userName">User name</param>
/// <param name="age">The age.</param>
public void SomeMethod(string userName, int age)







share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311438%2fc-sharp-documentation-update-after-method-signature-change%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Have a look at GhostDoc. It's on the visual studio marketplace too.



    I've used the free version which will document methods for you (and update them). Just place the cursor on the method definition and press CTRL + SHIFT + D (by default) to update method/class documentation.



    Below would be the result after updating your example:



    /// <summary>
    /// Example method for my question.
    /// </summary>
    /// <param name="userName">User name</param>
    /// <param name="age">The age.</param>
    public void SomeMethod(string userName, int age)







    share|improve this answer





























      1














      Have a look at GhostDoc. It's on the visual studio marketplace too.



      I've used the free version which will document methods for you (and update them). Just place the cursor on the method definition and press CTRL + SHIFT + D (by default) to update method/class documentation.



      Below would be the result after updating your example:



      /// <summary>
      /// Example method for my question.
      /// </summary>
      /// <param name="userName">User name</param>
      /// <param name="age">The age.</param>
      public void SomeMethod(string userName, int age)







      share|improve this answer



























        1












        1








        1







        Have a look at GhostDoc. It's on the visual studio marketplace too.



        I've used the free version which will document methods for you (and update them). Just place the cursor on the method definition and press CTRL + SHIFT + D (by default) to update method/class documentation.



        Below would be the result after updating your example:



        /// <summary>
        /// Example method for my question.
        /// </summary>
        /// <param name="userName">User name</param>
        /// <param name="age">The age.</param>
        public void SomeMethod(string userName, int age)







        share|improve this answer















        Have a look at GhostDoc. It's on the visual studio marketplace too.



        I've used the free version which will document methods for you (and update them). Just place the cursor on the method definition and press CTRL + SHIFT + D (by default) to update method/class documentation.



        Below would be the result after updating your example:



        /// <summary>
        /// Example method for my question.
        /// </summary>
        /// <param name="userName">User name</param>
        /// <param name="age">The age.</param>
        public void SomeMethod(string userName, int age)








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 23 at 13:13

























        answered Mar 23 at 9:31









        haldohaldo

        2,7491823




        2,7491823





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55311438%2fc-sharp-documentation-update-after-method-signature-change%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript