-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathcomments1.cs
More file actions
46 lines (32 loc) · 799 Bytes
/
comments1.cs
File metadata and controls
46 lines (32 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Start of comment1.cs
// This tests the basic types of comment block
// 1) Basic comment types
// A single-line comment
/// An XML comment
class C { }
/* A multiline comment */
// 2) Comment blocks
// A line on its own is a commentblock
// Two lines together
// are in the same commentblock
// Three lines
// in the same
// commentblock
/* This is a */ /* single comment block */
/* This is a
true multiline
comment */
// These three lines,
/* even though they are using different commenting styles, */
/// form a single commentblock
class Foo
{
/*
*/
// This is not the same comment block
int x; // as this line
// because they are offset differently.
int y; // These are different
int z; // comment blocks.
}
// End of comment1.cs