C# Inheritance

Inheritance in C# is known as the concept which can be used to inherit properties like fields & methods, from one class to another class. Due to this inheritance classes are divided into 2 classes. Real World Example A scientific calculator is a type of calculator that has been extended. The parent object is the … Read more

Categories C#

C# Array

Array in C# is used to store a fixed-size sequential collection of elements of the same data type, that is referred to by a common name. The length of the array specifies the number of elements in that array. And each data item in the array is known as the element of the array. Array … Read more

Categories C#

C# Enums

C# Enum is a strongly typed constant and keyword for the new data type Enumeration. An effective technique to define a set of named integral constants that may be assigned to a variable is to use a Typesafe enumeration. Enums make the code easier to read and less likely to have errors. When you have … Read more

Categories C#

C# Class

C# Class plays an important role. Through classes, we can associate everything with C#. A Class in C# is known as an object constructor. To solve problems in a better way we always divide the problem into objects. A class is similar to a blueprint for a particular object. Every object in the actual world … Read more

Categories C#

C# Syntax:

As we know C# is an object-oriented programming language. Like other OOP languages, the C# program also consists of objects to interact with other actions called Methods. Some objects having same kind are said to be in same class The basic C# program syntax is given below: Syntax: Keywords: Using Keyword: The first statement in … Read more

C# Multithreading

Multithreading defines multiple threads which execute at the same time. As we know thread is known as the execution path for the program. Multithreading in C# is known as a process in which multiple threads work at the same time. Multithreading is used to achieve multi-tasking. Multi-Tasking saves time by executing multiple tasks at once. Multithreading … Read more

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# 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

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#

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#