Logical Operators

[print-me] Logical operators typically involve boolean values and  yields boolean results. There are often use to create multiple or complex conditions. We have learned that a  boolean value can either be true or false. We can use the different logical operators available in C#. Read more

Comparison Operators

[print-me] 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, true, and false if the comparison is false. These comparison operators are Read more

Assignment Operators

[print-me] 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 depending on the right operand. The table shows assignment Read more

C# Math

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 of available C# Math Operators. C# Math Operators Operator Category Read more

Expressions and Operators

[print-me] 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. There are different kinds of operators in C# and Read more

Conversion Using the Convert Class

[print-me] Convert Class – The .NET Framework has a static class available that can be used for converting values from one type to another. The System.Convertclass has some methods that can be used to convert to different target datatypes. You must Read more

Explicit Conversion

[print-me] 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 to a modification of value so be cautious when Read more

Implicit Conversion

[print-me] An implicit conversion of variables is a kind of conversion that is automatically done by the compiler. A variable of one data type can be implicitly converted to another data type provided that its content can be handled by the type Read more

Constant Variables

[print-me] 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 an error. Constants must be assigned with an initial Read more

Using Variables

[print-me] Variables in C# are containers inside the computer’s memory where you can place the data you need for your program. The term “variable” got its name from the fact that variables represent values that change. The data stored in these Read more

C# Data Types

[print-me] 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 called primitive data types in other languages because you Read more

Variables

[print-me] 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 data. The contents of the container can be removed or Read more

String Verbatim

[print-me] 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 the “backslash” and type \ instead. This will produce an error Read more

Escape Sequences

[print-me] 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 a newline when outputting a string, we can use Read more

C# Comments

[print-me] 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 C# (and most programming languages), you can do that Read more

C# Errors

[print-me] 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 not fixed immediately. In any programming language, there are Read more

IntelliSense

[print-me] Perhaps one in all the foremost necessary options of Visual Studio is that the IntelliSense. IntelliSense is AN autocompletion tool additionally as a fast reference for categories, methods, and plenty of a lot of. I keep in mind victimisation Read more

Simple Program in C#

[print-me] Let’s produce our 1st program mistreatment the C# artificial language. The program can print a line of text during a console window. Note that we are going to be mistreatment Console Application because the project sort for the subsequent Read more

Visual Studio

[print-me] Visual Studio is the all-in-one development environment for developing software using Microsoft Technologies. If you will be programming in C#, it is recommended to install and use Visual Studio. There are multiple versions of Visual Studio, both paid and free Read more

.NET Framework

[print-me] The .NET Framework is a platform created by Microsoft used for developing different kinds of applications for the Microsoft Windows platform. The .NET Framework can also be used for developing web applications, and even mobile applications. Several versions of the .NET Read more

introduction to c# programming

C# (pronounced as “c-sharp”) is an object-oriented general-purpose programming language created by Microsoft. C sharp can be used to build windows applications, web applications, web services, mobile applications, games, and many more. It is a language that even beginners and students Read more