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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:26:59+00:00 2026-06-14T03:26:59+00:00

Update: ILSPY, DotPeek and JustDecompile automatically support what I am looking. I just want

  • 0

Update:
ILSPY, DotPeek and JustDecompile automatically support what I am looking.

I just want to convert my C# XML Comments into Comments.

Input

<member name="P:...">
      <summary>.......</summary>
      <returns>
        ......
      </returns>
</member>

Output,

/// <summary>
/// ...
/// </summary>
/// <returns>...</returns>
  • 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-14T03:27:00+00:00Added an answer on June 14, 2026 at 3:27 am

    Without more context for what your ultimately trying to get out of it, this should convert Xml into comments. Nothing real tricky going on here…

    string content =
    @"<member name=""P:..."">
      <summary>This is the summary.</summary>
      <returns>This is the return info.</returns>
      </member>";
    
    XDocument doc = XDocument.Parse(content);                        
    foreach (var member in doc.Descendants("member"))
    {
         StringBuilder sb = new StringBuilder();
    
         sb.AppendLine("/// <summary>");
         sb.AppendLine("/// " + member.Descendants("summary").Select(e => e.Value).FirstOrDefault());
         sb.AppendLine("/// </summary>");
    
         sb.AppendLine("/// <returns>");
         sb.AppendLine("/// " + member.Descendants("returns").Select(e => e.Value).FirstOrDefault());
         sb.AppendLine("/// </returns>");
    
         // sb.ToString() contains the comments for this member
     }
    

    You’ll probably need to do more to get it exactly how you want.

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

Sidebar

Related Questions

Update: I am sorry i pasted in list.xml twice by mistake, my question is
Update following initial comments The model has an object in it called 'Account', of
UPDATE: It was suggested in the comments that I create a wiki for this.
Update There is no ready XML parser in Java community which can do NIO
Update: The app is running on the device of an ad-hoc user. I just
Update: I was able to solve this problem. I just remembered VBA use *
UPDATE: Thanks for all your help guys! I just need to take a litte
Update I want to have an expression (XPath, or Regex Expression, similar) that can
UPDATE: I just to precise that I'm new to Symfony2 and generally with frameworks.
UPDATE: Please see https://softwarerecs.stackexchange.com/questions/71464/java-library-to-insert-invisible-text-into-a-pdf instead. I want to insert invisible text into an existing

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.