From 5cc8b22b9f4ebf9e978c71c9670b88c3e03333af Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 1 Mar 2002 12:13:29 +0000 Subject: Updated coding style guidelines svn path=/trunk/mcs/; revision=2816 --- mcs/class/README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mcs/class/README') 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 { -- cgit v1.2.3