Skip to content

.NET

for loops in C#

Here, you will learn how to execute a statement or code block multiple times using the for loop, structure of the for loop, nested for loops, and how to exit from the for loop. The… Read More »for loops in C#

Combining Delegates

All the delegates you’ve seen so far have had only a single method in their invocation lists. Delegates can be “combined” by using the addition operator. The result of the operation is the creation of… Read More »Combining Delegates

Assigning Delegates

Because delegates are reference types, you can change the reference contained in a delegate variable by assigning to it. The old delegate object will be disposed of by the garbage collector (GC) when it gets… Read More »Assigning Delegates

What Are Structs?

Structs are programmer-defined data types, similar to classes. They have data members and functionmembers. Although structs are similar to classes, there are a number of important differences. The mostimportant ones are the following:• Classes are… Read More »What Are Structs?