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 8561677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:33:17+00:00 2026-06-11T16:33:17+00:00

I am just starting to look at the C# documentation standards. Here’s a method

  • 0

I am just starting to look at the C# documentation standards. Here’s a method that I have:

/// <summary>
/// Reformats a key in x.x format to 0x0x format
/// </summary>
/// <param name="dotFormatRowKey">key in ##.## format</param>
public static string DotFormatToRowKey(this string dotFormatRowKey) 
{

    if (! Regex.IsMatch(dotFormatRowKey, @"\d+\.\d+"))
       throw new ArgumentException("Expected ##.##, was " + dotFormatRowKey);

    var splits = dotFormatRowKey.Split('.')
                 .Select(x => String.Format("{0:d2}", Int32.Parse(x)))
                 .ToList();
    var joined = String.Join(String.Empty, splits.ToArray())

    return joined;
}

Can someone give me advice on how I should document the input and return parameters for this method. Also when I do this will the documented comments be available to a person if they use VS2010 intellisense?

  • 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-11T16:33:18+00:00Added an answer on June 11, 2026 at 4:33 pm

    As for how you should document the parameters: i think thats pretty subjective but the way you did it now looks ok to me. Altho you could maybe change your return variable joined into something more verbose, like "keyFormattedString" or something.

    as for the second part of your question:

    Also when I do this will the documented comments be available to a
    person if they use VS2010 intellisense?

    Quote taken from msdn:

    Extension methods are only in scope when you explicitly import the
    namespace into your source code with a using directive.

    If the method is inside some class in a class library, then they will have to reference that library into their current solution, in order to use/see the method and documented comments. You can basically make a new class library with all your extension methods in it, and then import that DLL to whatever solution you’re working on.

    Let’s say that you have a class library, then you simply add

    using ExtensionMethodsLib; // or whatever you'll call it
    

    to your using statements, on whatever page you might need it.

    Extension methods (msdn)

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

Sidebar

Related Questions

I'm just starting to look in to caching to improve performance and have a
Just starting to look into WCF and came across the WSDualHttpBinding binding. I have
I'm just starting to have a look at the enyo framework as I bought
I'm just starting to have a look at Ember.js and am having problems with
I'm just starting to look into using LINQ for my database (and XML, and
I'm just starting to look into the world of Functional Reactive Programming in Haskell,
Just starting with FactoryGirl. I have a Model named Subscription . It has a
Just starting out with subversion, have set up repos for 3 current projects and
I am just starting to get beyond the basics in R and have come
I am just starting out with ADO.net Entity Framework I have mapped two tables

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.