Last active
May 31, 2022 20:18
-
-
Save NickersF/6cabb6a6b5359bf9bb3dee0b409fdc5f to your computer and use it in GitHub Desktop.
C# Conventions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Casing | |
// Pascal casing | |
string StringVariable; | |
// Came casing | |
string stringVariable; | |
// Snake casing | |
string string_variable; | |
// Line spacing | |
String someFunc() | |
{ | |
int someInt = 0; | |
block | |
{ | |
} | |
block | |
{ | |
} | |
} | |
// Code blocks | |
public static void someFunc(int someParam) | |
{ | |
int someInt = 0; | |
if (someInt == someParan) | |
{ | |
return someInt; | |
} | |
if (someInt == someParam) | |
{ | |
someInt++; | |
return someInt; | |
} | |
if (someInt == someParam) | |
{ | |
someInt++; | |
return someInt; | |
} | |
else | |
{ | |
someInt--; | |
return someInt; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment