initializing the code rules

This commit is contained in:
2026-02-03 20:58:00 -06:00
commit a2a06d28c7
5 changed files with 213 additions and 0 deletions

18
CSHARP_FORMATTING.md Normal file
View File

@@ -0,0 +1,18 @@
# C#/.NET Formatting
When writing an `if` condition, always wrap the content of the `if` condition in `{` and `}`.
For example:
Instead of the following:
```csharp
if (value == 123)
Console.WriteLine("It's 123");
```
Write the following instead:
```csharp
if (value == 123)
{
Console.WriteLine("It's 123");
}
```