TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C# Coding Standard
Search

Rule:  11@413

This rule is Obsolete
Synopsis:Do use spaces before and after binary operators for readability
Language:C#
Severity Level:10
Category:Coding style


Description:

For best readability code as follows:

int c = (a - b);

Clearly this even is more apparent when 'a' and 'b' become more elaborate/complex expressions ... as in real code.

To continu the simple examples, the following is also OK, although less OK for more complex expressions:

int c = a - b;

Finally prevent unclear code like (especially for complexer expressions):

int c = a-b;

See also 11@407.