Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

warning CS1591: Missing XML comment for publicly visible type or membe

Status
Not open for further replies.

needscoop

Programmer
Nov 13, 2002
29
US
I've enabled documentation for a C# project, but now when I compile I get scores of the "warning CS1591: Missing XML comment for publicly visible type or member ..." warnings!

I'm putting /// <summary> and ///</summary> stmts within the method (with /// comments sandwiched in between the summary tag stmts), but still get the warnings.

Any insights would be helpful.



 
figured it out...
appears the comments must precede the method
(rather than being placed within the method).

Code:
 this example is okay:
		/// <summary>
		/// MyMethod:  sorts the MyTable data.
		/// </summary>
		public void MyMethod()

 this example gives the CS1591 warning:
		public void MyMethod()
                {
                    /// <summary>
                    /// MyMethod:  sorts the MyTable data.
                    /// </summary>
                    string a = "whatever"
                }



 
If you're using Visual Studio, just go to the line before the method, and type ///, and VS will fill in a lot of the XML Comment for you.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top