I can't stand it when braces are not on their own line, it is too easy to miss one when the line is wider than the screen and matching braces by column is incredibly easy.
Class names, and public properties are Capitalized
Parameters camelCase
local variables don't matter as long as they are not capitalized. starting with an _ is also acceptable (to me)
private variables holding the data to a property is the same name as the property camelCased with a proceding _
public class Foo
{
int _count;
public int Count
{
get
{
return _count;
}
set
{
_count=value;
}
}
}
The only time i use specific prefix or suffixes are with GUI elements, event handlers and delegates.
User controls are prefixed with an _ and have a suffix indicating the type of control.
Events are suffixed with EventHandler
And delegates are suffixed with Delegate
Tabs as spaces is always better (IMO) than tabs as tabs.
I like to ensure that all parenthesis are explicit (unless the expression becomes unreadable because of it)
I work in .net mostly, switching between VB.net and C#.net, I can not stand VB implicit parenthesis for subs without parameters... myObject.ToString just drives me up a wall compared to myObject.ToString()
When in doubt I try to find it here https://msdn.microsoft.com/en-us/library/ms229002(v=vs.110).aspx