Category: C# .NET

Arrays in C# .NET

Array is one of the important part of programming language. int nums = {1, 2, 3}; for (int i = 0; i < nums.Length; i++)...

Loops in C# .NET

There are different kinds of loops are used in C# .NET as follows: Pre-test Loops: ------------------------------------------- // no "until" keyword while (c < 10) c++;...

Choices in C# .NET

To Choices in C# .NET conditional operator, if statement, switch statement are used: greeting = age < 20 ? "What's up?" : "Hello"; if (age...

Operators in C# .NET

There are six kinds of operators in C&35; .NET. These are as follows: Comparison: == < > <= >= != Arithmetic: + - * /...

Enumerations in C# .NET

We can use Enumerations in C#35 >NET as following: enum Action {Start, Stop, Rewind, Forward}; enum Status {Flunk = 50, Pass = 70, Excel =...

Constants in C# .NET

We can use constants in C# .NET as following: const int MAX_STUDENTS = 25; // Can set to a const or var; may be initialized...