diff options
Diffstat (limited to 'mcs/class/README')
-rw-r--r-- | mcs/class/README | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/class/README b/mcs/class/README index 9e0a280b865..97382f10b20 100644 --- a/mcs/class/README +++ b/mcs/class/README @@ -174,6 +174,14 @@ the restricted dll found in the same directory. Notice how the accessor "get" also keeps its brace on the same line. + For very small properties, you can compress things: + + ok: + int Property { + get { return value; } + set { x = value; } + } + * Use white space in expressions liberally, except in the presence of parenthesis: @@ -209,6 +217,16 @@ the restricted dll found in the same directory. ... } + * Argument names should use the camel casing for + identifiers, like this: + + good: + void Method (string myArgument) + + bad: + void Method (string lpstrArgument) + void Method (string my_string) + Here are a couple of examples: class X : Y { |