C# Lessons

Ref vs out #L5

Another short post about ref and out – keywords that are used to pass parameters to functions.Using them we have to also remember that in both cases, the parameters are passed as references (address) and not values. Ref In the case of ref, the variable must be initialized before passing it as a parameter. With …

C# Lessons

The simplest explanation of the reflection #L2

At first, it took me some time to understand what is the reflection and how it works. Here, I will try to give you very short and simple definition: Reflection is a mechanism that allows us to access the structure (classes, methods, resources) of a given assembly during the program’s operation. Thanks to it, we …