Server Side Programming Articles

Page 752 of 2109

Common Language Runtime (CLR) in C#.NET

Samual Sam
Samual Sam
Updated on 17-Mar-2026 6K+ Views

The Common Language Runtime (CLR) is the execution environment for .NET applications that manages code execution, memory allocation, and provides essential runtime services. It acts as an intermediary between your C# code and the operating system, converting intermediate language code into machine-specific instructions through just-in-time compilation. The CLR ensures that C# applications run safely and efficiently by providing automatic memory management, exception handling, type safety verification, and cross-language interoperability across all .NET languages. CLR Execution Process C# Code IL Code (Bytecode) ...

Read More

What are Left Shift and Right Shift Operators (>> and <<) in C#?

George John
George John
Updated on 17-Mar-2026 1K+ Views

The left shift () operators in C# are bitwise operators that shift the bits of a number left or right by a specified number of positions. These operators are commonly used for efficient multiplication and division by powers of 2, as well as for low-level bit manipulation. Syntax Following is the syntax for the left shift operator − result = operand > numberOfPositions; How Left Shift Works The left shift operator (> 3; /* Right shift by 3: 60 / 8 = 7 */ Console.WriteLine("60 >> 3 ...

Read More

Working with DateTime in C#

Samual Sam
Samual Sam
Updated on 17-Mar-2026 936 Views

The DateTime class in C# is used to represent dates and times. It provides properties and methods to work with date and time values, perform calculations, comparisons, and formatting operations. Syntax Following is the syntax for creating DateTime objects − DateTime variableName = new DateTime(year, month, day); DateTime variableName = new DateTime(year, month, day, hour, minute, second); DateTime variableName = DateTime.Now; // current date and time DateTime variableName = DateTime.Today; // current date only Common DateTime Properties Property Description Date Gets the date component (time ...

Read More

Major features of C# programming

karthikeya Boyini
karthikeya Boyini
Updated on 17-Mar-2026 2K+ Views

C# is a modern, general-purpose, object-oriented programming language developed by Microsoft. C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows the use of various high-level languages on different computer platforms and architectures. C# combines the power of C++ with the simplicity of Visual Basic, making it an ideal choice for developing a wide range of applications from web services to desktop applications. Key Features of C# Major C# Features Core Language ...

Read More

Static binding vs Dynamic binding in C#

Arjun Thakur
Arjun Thakur
Updated on 17-Mar-2026 3K+ Views

Polymorphism can be static or dynamic. In static polymorphism, the method to be called is determined at compile time. In dynamic polymorphism, the decision is made at runtime based on the actual object type. Static Binding (Compile-Time Polymorphism) Static binding links a function with an object during compile time. It is also called early binding. This is achieved through method overloading and operator overloading. Static Binding Process Source Code Method calls Compiler Resolves calls ...

Read More

How to delete/remove an element from a C# array?

Chandu yadav
Chandu yadav
Updated on 17-Mar-2026 11K+ Views

In C#, arrays have a fixed size once created, so you cannot truly delete an element. However, you can remove an element by shifting the remaining elements to fill the gap, or use collections like List for dynamic removal. Understanding Array Element Removal When removing an element from an array, the process involves shifting all elements after the target position one position to the left, effectively overwriting the element to be removed. Array Element Removal Process Original: 35 ...

Read More

Try-Catch-Finally in C#

Samual Sam
Samual Sam
Updated on 17-Mar-2026 7K+ Views

The try-catch-finally statement in C# provides a structured way to handle exceptions that may occur during program execution. It allows you to gracefully handle errors like division by zero, file access failures, or network timeouts without crashing your application. Exception handling in C# is performed using three main keywords that work together to create a robust error handling mechanism. Syntax Following is the basic syntax of try-catch-finally statement − try { // Code that may throw an exception } catch (ExceptionType ex) { // Handle the exception } finally ...

Read More

Transpose a matrix in C#

George John
George John
Updated on 17-Mar-2026 3K+ Views

Transpose of a matrix flips the matrix over its diagonal, swapping rows and columns. This operation converts the element at position [i][j] to position [j][i] in the transposed matrix. For example − Matrix before Transpose: 1 2 3 4 5 6 7 8 9 Matrix after Transpose: 1 4 7 2 5 8 3 6 9 Matrix Transpose Operation Original Matrix 1 2 3 4 5 6 7 8 9 rows columns ...

Read More

Value Type vs Reference Type in C#

Ankith Reddy
Ankith Reddy
Updated on 17-Mar-2026 8K+ Views

Value type and reference type are two fundamental categories of data types in C#. Understanding their differences is crucial for memory management and program behavior. Value types store data directly, while reference types store a reference to the memory location where the data is stored. Syntax Following is the syntax for declaring value type variables − int number = 10; char letter = 'A'; bool flag = true; Following is the syntax for declaring reference type variables − string text = "Hello"; object obj = new object(); int[] array = new int[5]; ...

Read More

How to add items/elements to an existing jagged array in C#?

Ankith Reddy
Ankith Reddy
Updated on 17-Mar-2026 1K+ Views

Adding items to an existing jagged array in C# can be accomplished through several methods. You can modify individual elements directly, replace entire sub-arrays, or dynamically resize arrays using collections. The approach depends on whether you want to change existing elements or expand the array structure. Understanding Jagged Arrays A jagged array is an array of arrays where each sub-array can have different lengths. Unlike multidimensional arrays, jagged arrays provide flexibility in storing data with varying row sizes. Jagged Array Structure arr[0] arr[1] ...

Read More
Showing 7511–7520 of 21,090 articles
« Prev 1 750 751 752 753 754 2109 Next »
Advertisements