• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • C# 語言規范--2.3.3 注釋

    發表于:2007-07-14來源:作者:點擊數: 標簽:
    C# 語言規范--2.3.3 注釋: 支持兩種形式的注釋:單行注釋和帶分隔符的注釋。單行注釋以字符 // 開頭并延續到源行的結尾。帶分隔符的注釋以字符 /* 開頭,以字符 */ 結束。帶分隔符的注釋可以跨多行。 comment: (注釋:) single-line-comment (單行注釋)
    C# 語言規范--2.3.3 注釋:

    支持兩種形式的注釋:單行注釋和帶分隔符的注釋。單行注釋以字符 // 開頭并延續到源行的結尾。帶分隔符的注釋以字符 /* 開頭,以字符 */ 結束。帶分隔符的注釋可以跨多行。

    comment:(注釋:)
    single-line-comment(單行注釋)
    delimited-comment(帶分隔符的注釋)
    single-line-comment:(單行注釋:)
    //   input-charactersopt(//   輸入字符可選
    input-characters:(輸入字符:)
    input-character(輸入字符)
    input-characters   input-character(輸入字符   輸入字符)
    input-character:(輸入字符:)
    除換行符外的任何 Unicode 字符
    new-line-character:(換行符:)
    回車符 (U+000D)
    換行符 (U+000A)
    行分隔符 (U+2028)
    段落分隔符 (U+2029)
    delimited-comment:(帶分隔符的注釋:)
    /*   delimited-comment-charactersopt   */(/*   帶分隔符的注釋字符可選   */)
    delimited-comment-characters:(帶分隔符的注釋字符:)
    delimited-comment-character(帶分隔符的注釋字符)
    delimited-comment-characters   delimited-comment-character(帶分隔符的注釋字符   帶分隔符的注釋字符)
    delimited-comment-character:(帶分隔符的注釋字符:)
    not-asterisk(非星號)
    *   not-slash(*   非斜杠)
    not-asterisk:(非星號:)
    除 * 外的任何 Unicode 字符
    not-slash:(非斜杠:)
    除 / 外的任何 Unicode 字符

    注釋不嵌套。字符序列 /**/// 注釋中沒有任何特殊含義,字符序列 ///* 在帶分隔符的注釋中沒有任何特殊含義。

    在字符和字符串文本內不處理注釋。

    示例

    /* Hello, world program      This program writes "hello, world" to the console*/class Hello{   static void Main() {      System.Console.WriteLine("hello, world");   }}

    包含一個帶分隔符的注釋。

    示例

    // Hello, world program// This program writes "hello, world" to the console//class Hello // any name will do for this class{   static void Main() { // this method must be named "Main"      System.Console.WriteLine("hello, world");   }}

    顯示了若干單行注釋。



    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>