master
Colin McMillen 4 years ago
parent
commit
e13c34a7ea
  1. 15
      Style-Guide.md

15
Style-Guide.md

@ -76,4 +76,17 @@ If a file contains only a single class, the filename should match the name of th
### Extension Methods
All definitions of extension methods must be in the file `ExtensionMethods.cs`.
All definitions of extension methods must be in the file `ExtensionMethods.cs`.
### Type Casting
Casts shouldn't be used unless needed, but if they are necessary, they look like this:
```csharp
float f = (float) someInt;
```
### Numeric Literals
A floating-point literal between 0 and 1 always has a leading 0 before the decimal point, like this: `float f = 0.1f;`.
A floating-point literal with no fractional part is preferably written with a ".0" suffix, like this: `float f = 42.0f`, but it's not a strict requirement.
Loading…
Cancel
Save