Skip to content
C-Sharp
Fazrin

Adding Methods to Delegates

Although you saw in the previous section that delegates are, in reality, immutable, C# provides syntax for making it appear that you can add a

Read More »
C-Sharp
Fazrin

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

Read More »
C-Sharp
Fazrin

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

Read More »
C-Sharp
Fazrin

Creating the Delegate Object

A delegate is a reference type and therefore has both a reference and an object. After a delegate type is declared, you can declare variables

Read More »
C-Sharp
Fazrin

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

Read More »
C-Sharp
Fazrin

Declaring the Delegate Type

As we stated in the previous section, delegates are types, just as classes are types. And as with classes, a delegate type must be declared

Read More »

I am Fazrin! a passionate software engineer & tech enthusiast

.NET evangelist love to learn mainly Microsoft dev tools and contributor of open source projects, I love teaching and build an effective community to help each other to develop outstanding software products and services