I'd never really paid any attention to this before, but working as part of a large group has made me realize how important it is to keep consistent and readable coding conventions. Here's what I've settled on for my current project:
class IAmAClass
{
public iAmAMethod()
{
// blah blah blah
}
public IAmAProperty
{
get{return iAmAnyVariable}
}
public parenthesesExample(someInput, anotherInput)
{
iAmAnyVariable = ( ( someInput * (float)anotherInput / (someInput + anotherInput) ) );
{
private int iAmAnyVariable
}
What do you guys use?
EDIT - formatting on this forum is strange... stuff in braces should be indented. Or is it just my browser?