Why C# version for DotNetNuke is not (so) important?

Whenever possible, extending frameworks and robust applications should NOT be done by touching the core code and recompilation but with external, new units of code to be plugged into the framework. The open-closed principle teaches us that application should be opened for extensions but closed for modifications.

Passing objects by reference/value in C#

Many developers’ knowledge about passing object as parameters can be summed up with the following “In c# object parameters are always being passed by reference, if i will pass some object to another code, the same object will be in context”. While this knowledge is sufficient for most of the cases, it might cause bugs in a few. Lets take a look at some code snippet:

© 2021 Yoni Goldberg. All rights reserved.