Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-03-01 15:13:29 +0300
committerMiguel de Icaza <miguel@gnome.org>2002-03-01 15:13:29 +0300
commit5cc8b22b9f4ebf9e978c71c9670b88c3e03333af (patch)
tree1c9832f767a1653782d872c5c2a5051731069d01 /mcs/class/README
parent77b6f5f34d1462788b0388193c2fb7256bb1963b (diff)
Updated coding style guidelines
svn path=/trunk/mcs/; revision=2816
Diffstat (limited to 'mcs/class/README')
-rw-r--r--mcs/class/README18
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 {