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…
Escape Sequences
Escape sequences are character combinations starting with a backslash () and followed by a letter or digits inserted in a string literal to produce a modified output. For example, to produce…
C# Comments
When writing code, you might want to add some text that will serve as a reminder or a note for you or for anyone who will read your code. In…
Troubleshooting Errors
Most of the time, C# errors are encountered when creating a program. Almost all of the programs you see today suffered at least one error. Errors can be devastating if…