Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:56:18+00:00 2026-06-07T15:56:18+00:00

For methodA(), I want to use the /// xml documentation system. I want to

  • 0

For methodA(), I want to use the /// xml documentation system. I want to document that methodB() should be called before methodA().

Supposing someone renamed methodB() to renamedMethodB(), I want the old methodB() reference in the comments to be updated to renamedMethodB(). Supposing someone deleted methodB() (and assuming nothing else used methodB()), I want the program to not compile, or at least generate a warning on account of the methodB() comment then referring to a method that doesn’t exist anymore.

I’m sure I saw an example of this someplace, so I think its possible. How do I do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:56:20+00:00Added an answer on June 7, 2026 at 3:56 pm

    If the user use the refactoring menu of Visual Studio, he will have the option to search in strings and comments the method. If he doesn’t, there is no option to do this automatically.

    To reduce the risk of missing renaming, always use the <see cref="OtherMethod"/> construct in your comments. If the method name can’t be resolved, a warning will be produced.

    Example :

    /// <summary>
    /// This method will call <see cref="MethodB"/>
    /// </summary>
    public void MethodA()
    {
        MethodBNew();
    }
    
    /// <summary>
    /// Some method
    /// </summary>
    public void MethodBNew() // Formerly MethodB
    {
    }
    

    This code will produce a warning.

    PS: I assume the Build Xml documentation option is activated in the project properties, but I’m confident it is if you have asked such question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to know which parsing method is best to use among Simple XML
The method in question that I want to use is gem and sourced here
I want to use DOM4j for parsing xml file in Java. I have this
I want to use a Rake task to cache my sitemap so that requests
I want to know whether it is possible to use an xml layout file
I want to use IColorManager and IPreferenceStore of Eclipse internal XML editor in my
I want to use XMLHttpRequest in JavaScript to POST a form that includes a
I'd like to use Nokogiri to insert nodes into an XML document. Nokogiri uses
Eg. I have following delegate method I want to use as a callback function
I don't want use old Visual Basic methods in my code, and I'm confused

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.