Colin McMillen 2020-02-25 21:48:13 +00:00
parent a70b6a04b0
commit e13c34a7ea

@ -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.