Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A matter of style in C#. Parent comment
- For private class fields, I use an underscore with camelcase, starting with a lowercase letter, e.g.:
private static int _id = 12345;
- For public class fields, properties, methods, etc. I use camelcase, starting with an uppercase letter, e.g.:
public double Determinant() ...
- For method parameters, I use camelcase, starting with a lowercase letter, e.g.:
public void Foo(int bar, ref string helloThere)
I think this is also the style that Microsoft uses internally, and it makes it easy to see where your variables came from.
There are no comments on this comment yet.
- For private class fields, I use an underscore with camelcase, starting with a lowercase letter, e.g.:
private static int _id = 12345;
- For public class fields, properties, methods, etc. I use camelcase, starting with an uppercase letter, e.g.:
public double Determinant() ...
- For method parameters, I use camelcase, starting with a lowercase letter, e.g.:
public void Foo(int bar, ref string helloThere)
I think this is also the style that Microsoft uses internally, and it makes it easy to see where your variables came from.