quartz/content/Type casting.md
2024-04-14 07:30:00 +02:00

251 B

Type casting is when you tell the complier to temporarily treat a variable as a different type.

int first = 5;
int second = 3;
decimal quotient = (decimal)first / (decimal)second;
Console.WriteLine(quotient);

202404131836