Hi All,
What is the best way to format your c# code.
I'm looking to improve the way my code is formated. I curentlly put all my code into regions (i.e methods functions ect)
Is this the best way or are there other ways that work better?
Sp
Hi All,
What is the best way to format your c# code.
I'm looking to improve the way my code is formated. I curentlly put all my code into regions (i.e methods functions ect)
Is this the best way or are there other ways that work better?
Sp
I tend to use regions to group logically related code together - almost all code in a given class will be contained within a region in my code base.
Other than that, it's personal preference, though I will say that if you are working on a production code base for another company, do what they do - changing the formatting to the way you do it will screw up a lot of file differencing tools when people do historical comparisons in source control.
the "best" way is to follow your companies coding standards. Other then that, it is personal taste.