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

后端 未结 8 1983
隐瞒了意图╮
隐瞒了意图╮ 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:25

    Completely different things, one is for commenting/documentation, the other for hiding code.

    XML Comments (///)

    #Region

提交回复
热议问题