What is the difference between /// and #region in c#?

后端 未结 8 1973
隐瞒了意图╮
隐瞒了意图╮ 2021-02-13 03:57

What is the difference between ///

and #region ...#endregion statements in c#? Which one the best?

8条回答
  •  我在风中等你
    2021-02-13 04:07

    #region isn't a comment statement at all. It's for marking sections of code. /// is for documentation comments.

提交回复
热议问题