X hits on this document

1084 views

0 shares

0 downloads

0 comments

49 / 396

C# LANGUAGE SPECIFICATION

input-characters: input-character input-characters   input-character

input-character: Any Unicode character except a new-line-character

new-line-character: Carriage return character (U+000D) Line feed character (U+000A) Next line character (U+0085) Line separator character (U+2028) Paragraph separator character (U+2029)

delimited-comment:: /*   delimited-comment-textopt   asterisks   /

delimited-comment-text:: delimited-comment-section delimited-comment-text   delimited-comment-section

delimited-comment-section:: not-asterisk asterisks   not-slash

asterisks:: * asterisks   *

not-asterisk: Any Unicode character except *

not-slash: Any Unicode character except /

Comments do not nest. The character sequences /* and */ have no special meaning within a // comment, and the character sequences // and /* have no special meaning within a delimited comment.

Comments are not processed within character and string literals.

The example

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

includes a delimited comment.

The example

36Copyright Microsoft Corporation 1999-2003. All Rights Reserved.

Document info
Document views1084
Page views1084
Page last viewedSun Dec 11 08:19:14 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments