2002-11-17 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / README
index 9e0a280b865fab1708226be7a6fd09e5eab6fa3d..97382f10b20979e43ac90cbe2ec7b34f0fa0fce6 100644 (file)
@@ -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 {