Documentation Comments for a method with parameters : Documentation Comments : Language Basics C# Examples


C# Examples » Language Basics » Documentation Comments »

 

Documentation Comments for a method with parameters









    
using  System;

namespace  DocumentationCommentsExample
{
        ///  <summary>
        ///  A  documentation  sample  -  the  short  description  goes  here
        ///  </summary>
        ///  <remarks>Where  a  longer  description  would  go</remarks>
        class  ClassExample
        {
                ///  <summary>
                ///  A  member  variable
                ///  </summary>
                private  string  m_str;


                ///  <summary>
                ///  A  method  example
                ///  </summary>
                ///  <param  name="val">a  new  value  to  be  saved</param>
                ///  <returns>the  length  of  the  string</returns>
                public  int  MethodExample(  string  val  )
                {
                        m_str  =  val;
                        return  val.Length;
                }

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Documentation Comments