Mohd Ebrahim said:
Hi,
1. what is the difference between ///<Summary> and #region ...#endregion
comment statements in c#.
2. which one to use between the two?
Regards,
The #region is usually used to separate separate sections, for example in a
class you might have regions for Constructors, Properties, Methods, Private
Fields etc. These can be expanded/contracted to ease readability of the code
although a lot of developers don't like them as they can often hide crucial
information.
The /// style comments usually annotate classes and methods, as well as
providing commentary within the code they are used by documentation tools to
produce the modern style help files.