Articles

Some believe that experienced developers do not make silly errors. Comparison errors? Dereferencing null references? Bet you think: « No, it’s definitely not about me… » ;) By the way, what about errors with sorting? As the title suggests, there are some nuances.

OrderBy(…).OrderBy(…)

Let me give you an example to describe the problem. Let’s say we have some type (Wrapper) with two integer properties (Primary and Secondary). There’s an array of instances of this type. We need to sort it in ascending order. First — by the primary key, then — by the secondary key.

Source de l’article sur DZONE

Today, we discuss C# code quality and a variety of errors by the example of CMS DotNetNuke. We’re going to dig into its source code. You’re going to need a cup of coffee…

DotNetNuke

DotNetNuke is an open-source content management system (CMS) written mainly in C#. The source code is available on GitHub. The project is part of the .NET Foundation.

Source de l’article sur DZONE