C# Namespaces

The C# Namespaces is a group of linked objects or types with the same name. If you don’t specify a namespace explicitly, the C# compiler creates one for you. The global namespace is the default namespace. You can’t modify the fact that all namespaces are implicitly public. Modifiers and attributes are not supported by a … Read more

Categories C#

C# Polymorphism

C# polymorphism in any programming language stands for “many forms”. Polymorphism in C# happens when there are many classes in any program that are related to each other by inheritance. It can be Static and Dynamic. When the response to a function is determined at the compile time is known as Static Polymorphism and when … Read more

Categories C#

C# Keywords

C# Keywords are known as predefined sets of reserved words that have special meaning for the compiler in any language. C# keywords can’t be used as identifiers i.e variable name, class name, etc. Keywords are preset, reserved identifiers that the compiler interprets differently. If they don’t start with @, they can’t be utilised as identifiers in … Read more

Categories C#

Major 6 C# Operators

C# Operators allow performing operations on variables and values (operands). Basically, Operators are the foundation of any programming language. Without them any programming language is incomplete. C# provides a number of operators. Operators knew as a symbol that defines what kind of operation needs to perform on operands. Following are the type of built-in C# … Read more

Categories C#

C# Loops

Here, you will learn how to execute a statement or code block multiple times using the Loops in C#. Loops are the instructions that repeat until a specified condition is reached. It’s used when we have to execute a block of code several times. Like other programming languages, C# also provides various control structures that … Read more

Categories C#

C# Constants

C# Constants are immutable values that are known at compile time and remain constant throughout the program’s existence. The const modifier is used to declare constants. Const declarations are only allowed for C# built-in types (excluding System.Object). Const cannot be used to user-defined types such as classes, structs, and arrays. Use the readonly modifier to … Read more

Categories C#

C# While Loop

In C# while loop, the loops keep repeating through a block of code until the specified condition is not True. The loop has the test condition at the beginning of the loop. All the given statements are executed till the given boolean condition satisfies when the condition becomes false, the control will be out from the while loop. … Read more

Categories C#

C# Variables

C# Variables are used to represent storage locations. In C# variables have a particular type which determines what type of values can be stored in that variable. As C# is strongly typed language so we have to define a variable with the required data type. It will specify the type of data that has to behold in … Read more

Categories C#

C# Data Types

C# Data Types are used to define a type of data that can behold by variable. Data Types such as integer, float, string, etc., are used in our application. Language which is strongly typed such as C# programming language, it’s mandatory to define a variable with the data type to indicate what type of data, variable … Read more

Categories C#

C# Tutorial

C# Introduction C# is a general-purpose object-oriented programming language which is created by Microsoft. Approved by International Standards Organization (ISO) and European Computer Manufacturers Association (ECMA). C# basically enables developers to build many types of safe and secure applications that run in the .NET ecosystem. C# is developed by Anders Hejlsberg within the .NET framework for Common Language … Read more