Skip to content

marczaku/csharp-cheatsheet-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

CSharp Cheat Sheet Template

Keyword Summary Sample Code Mentioned In
; Used to separate statements from each other. int i = 5; i++; Console.WriteLine(i); Script Execution
// Used for single-line comments float multiplier = 0.01f; // % to float (e.g. 24% = 0.24) Comments
Variable Initialization When a value is assigned to a variable for the first time int a = 5; Variables
dotnet new console -o project-name ? ? ?
Script Execution Order ? ? ?
Formatting ? ? ?
Console.WriteLine ? ? ?
Console.Write ? ? ?
Multi-Line Comment ? ? ?
XML Documentation Comment ? ? ?
Variable ? ? ?
Variable Declaration ? ? ?
Variable Assignment ? ? ?
Uninitialized Variable ? ? ?
= (Assignment Operator) ? ? ?
Scope ? ? ?
Variable Scope ? ? ?
int ? ? ?
float ? ? ?
double ? ? ?
bool ? ? ?
char ? ? ?
string ? ? ?
byte ? ? ?
Implicit Casting ? ? ?
Explicit Casting ? ? ?
Type Conversion ? ? ?
Convert.ToInt32 ? ? ?
Operators ? ? ?
Arithmetic Operators ? ? ?
+ ? ? ?
- ? ? ?
* ? ? ?
/ ? ? ?
% ? ? ?
+= ? ? ?
-= ? ? ?
++ ? ? ?
-- ? ? ?
Post-Increment i++ ? ? ?
Pre-Increment ++i ? ? ?
System.Math ? ? ?
static ? ? ?
Math.Max ? ? ?
Math.Min ? ? ?
Math.Sqrt ? ? ?
Math.Abs ? ? ?
Math.Round ? ? ?
Math.Floor ? ? ?
Math.Ceiling ? ? ?
Math.Clamp ? ? ?
Math.Pow ? ? ?
string.Length ? ? ?
string.ToUpper ? ? ?
string.+ ? ? ?
$"{}" ? ? ?
string.[] ? ? ?
string.IndexOf ? ? ?
string.SubString(int) ? ? ?
string.Substring(int, int) ? ? ?
string.Replace ? ? ?
immutable ? ? ?
Logical Operators ? ? ?
! ? ? ?
&& ? ? ?
` ` ?
Comparison Operators ? ? ?
> ? ? ?
== ? ? ?
!= ? ? ?
` ` ?
>= ? ? ?
<= ? ? ?
if ? ? ?
else ? ? ?
else if ? ? ?
? : ? ? ?
Flow Control Statements ? ? ?
System.Random ? ? ?
pseudo-random ? ? ?
seed ? ? ?
Random.Next(int, int) ? ? ?
Random.Next() ? ? ?
Random.NextDouble() ? ? ?
Random.Next() ? ? ?
while ? ? ?
bool-expression ? ? ?
do..while ? ? ?
for ? ? ?
iteration statement ? ? ?
loop body ? ? ?
loop ? ? ?
execution ? ? ?
execution jump ? ? ?
break ? ? ?
continue ? ? ?
Array ? ? ?
int[] ? ? ?
Array Initialization ? ? ?
Array Access for Assignment ? ? ?
Array Access for Reading ? ? ?
Array.Resize ? ? ?
Array.Length ? ? ?
foreach ? ? ?
2D-Array ? ? ?
2D-Array Initialization ? ? ?
2D-Array Access for Assignment ? ? ?
2D-Array Access for Reading ? ? ?
Jagged Arrays ? ? ?
Method ? ? ?
void ? ? ?
Return Type ? ? ?
() ? ? ?
Parameter ? ? ?
Argument ? ? ?
Parameter ? ? ?
Parameter-List ? ? ?
Named Arguments ? ? ?
Optional Arguments ? ? ?
Default Value ? ? ?
return ? ? ?
Code Paths ? ? ?
Method Overloading ? ? ?
Object-Oriented Programming ? ? ?
Data ? ? ?
Function ? ? ?
Structured Programming ? ? ?
Objects ? ? ?
Instance Method ? ? ?
Class ? ? ?
Type ? ? ?
class ? ? ?
new ? ? ?
Class Member ? ? ?
Class Instance ? ? ?
Garbage Collector ? ? ?
null ? ? ?
Invoke ? ? ?
Field ? ? ?
Static Class Member ? ? ?
Static Class ? ? ?
Global Access ? ? ?
Constructor ? ? ?
Initial Class Values ? ? ?
Parameterless ? ? ?
Default Contructor ? ? ?
Finalizer ? ? ?
Object Destruction ? ? ?
GC.Collect ? ? ?
Encapsulation ? ? ?
Access Modifier ? ? ?
private ? ? ?
protected ? ? ?
public ? ? ?
internal ? ? ?
Class Member Access ? ? ?
Inheritance ? ? ?
Property ? ? ?
Getter Method ? ? ?
Setter Method ? ? ?
Validation ? ? ?
Processing ? ? ?
get ? ? ?
set ? ? ?
Expression Body Syntax ? ? ?
Auto Property ? ? ?
Read-Only Property ? ? ?
Auto Property ? ? ?
base-Class ? ? ?
Inherit From ? ? ?
Derived Class ? ? ?
Child Class ? ? ?
Parent Class ? ? ?
sealed ? ? ?
Polymorphism ? ? ?
as ? ? ?
virtual ? ? ?
override ? ? ?
base ? ? ?
Abstraction ? ? ?
abstract ? ? ?
Implementation ? ? ?
Composition ? ? ?
"Composition over Inheritance" ? ? ?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published