Category: CSharp

CSharp
Csharp_Arrays

C# – Arrays An array stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type stored at contiguous memory locations. Instead of declaring individual […]

Read More
CSharp
C# – Type Conversion

C# – Type Conversion Type conversion is converting one type of data to another type. It is also known as Type Casting. In C#, type casting has two forms − Implicit type conversion − These conversions are performed by C# in a type-safe manner. For example, are conversions from smaller to larger integral types and […]

Read More
CSharp
csharp Program Structure

Creating Hello World Program A C# program consists of the following parts − Namespace declaration A class Class methods Class attributes A Main method Statements and Expressions Comments Let us look at a simple code that prints the words “Hello World” − using System;namespace HelloWorldApplication {class HelloWorld {static void Main(string[] args) {/* my first program […]

Read More