Comparison Operators
C# has comparison operators which are used when comparing values or references of variables. These operators yield boolean results. Values yielded by comparison expressions are either true if the comparison is, in fact,…
Assignment Operators
Assignment Operators are shortcuts for modifying the value of a variable and immediately assigning the result to the variable itself. It is used to modify the value of the left operand…
Mathematical Operators
C# Math Operators has available operators for use in mathematical calculations. By combining operators and operands, we have an expression which is how C# makes calculations. Here is a table…
Expressions and Operators
C# operator :-Modern programming languages have a set C# operator which is one of the common elements of a programming language. C# offers mathematical operators, assignment operators, and comparison operators.…
Conversion Using the Convert Class
Convert Class – The .NET Framework has a static class available that can be used for converting values from one type to another. The has some methods that can be…
Explicit Conversion
Explicit conversion lets you force the program to convert a data into another data type if it doesn’t support implicit conversion. The explicit conversion has a tendency of losing or resulting…
Constant Variables
Constant variables, or simply constants, are variables whose value cannot be changed once initialized. Given that fact, constants can only do initialization since forgetting to initialize a constant will produce…
C# Data Types
C# Data Types are predefined datatypes in C# used for storing the most basic type of data. This includes datatypes for storing numbers, characters, strings, and boolean values. They are…
Variables
A variables is basically a storage in a computer’s memory where you can put a value that will be used by your program. Picture it as a container that holds your…
String Verbatim
Verbatim String allows you to ignore escape sequences and makes writing strings more natural and readable. When using escape sequences in string literals, you sometimes make a mistake of typing \ for…