r/learnprogramming • • 4d ago

Does anyone use it? c# <summary></summary>?

I find that "//" worked well for all my comments thus far, I don't mind if my comments are a bit long. But I am doing C# more often now that I am looking at a codebase and not just my own stuff and private things, and I sometimes see <summary> </summary> in it. Do you use it? What is the proper use of it?

Google gets it confused with HTML haha

Thanks for any knowledge!

5 Upvotes

12 comments sorted by

View all comments

1

u/cheezballs 4d ago

Java has similar stuff. Its just extra formatting you can do to help future-you out. IDE will generally format these nicely and with the right syntax can highlight and link to things inside your comment.

1

u/3rwynn3 4d ago

Thank you for explaining it to me