-
Aktuelle Beiträge
Archiv
- März 2020 (1)
- Januar 2020 (1)
- November 2019 (1)
- Oktober 2019 (1)
- September 2019 (2)
- August 2019 (1)
- Juli 2019 (2)
- Juni 2019 (2)
- Mai 2019 (2)
- April 2019 (2)
- März 2019 (3)
- Februar 2019 (2)
- Januar 2019 (2)
- Dezember 2018 (3)
- November 2018 (2)
- Oktober 2018 (2)
- September 2018 (2)
- August 2018 (1)
- Juli 2018 (3)
- Juni 2018 (1)
- Mai 2018 (3)
- April 2018 (5)
- März 2018 (4)
- Februar 2018 (4)
- Januar 2018 (3)
- Dezember 2017 (4)
- November 2017 (4)
- Oktober 2017 (5)
- September 2017 (3)
- August 2017 (3)
- Juli 2017 (5)
- Juni 2017 (1)
- Mai 2017 (4)
- April 2017 (5)
- März 2017 (3)
- Februar 2017 (3)
- Januar 2017 (4)
- Dezember 2016 (2)
- November 2016 (2)
- Oktober 2016 (2)
- September 2016 (2)
- August 2016 (2)
- Juli 2016 (2)
- Juni 2016 (3)
- Mai 2016 (4)
- April 2016 (4)
- März 2016 (4)
- Februar 2016 (4)
- Januar 2016 (5)
- Dezember 2015 (4)
- November 2015 (5)
- Oktober 2015 (3)
- September 2015 (4)
- August 2015 (4)
- Juli 2015 (4)
- Juni 2015 (4)
- Mai 2015 (5)
- April 2015 (4)
- März 2015 (5)
- Februar 2015 (5)
- Januar 2015 (6)
- Dezember 2014 (5)
- November 2014 (7)
- Oktober 2014 (7)
- September 2014 (8)
- August 2014 (7)
- Juli 2014 (4)
- Juni 2014 (5)
- Mai 2014 (4)
- April 2014 (4)
- März 2014 (5)
- Februar 2014 (5)
- Januar 2014 (5)
- Dezember 2013 (5)
- November 2013 (6)
- Oktober 2013 (6)
- September 2013 (5)
- August 2013 (6)
- Juli 2013 (7)
- Juni 2013 (4)
- Mai 2013 (8)
- April 2013 (9)
- März 2013 (10)
- Februar 2013 (11)
- Januar 2013 (14)
Kategorien
Meta
Archiv der Kategorie: .NET
C# Protected Internal vs Private Protected
C# offers the composed access modifiers “protected internal”. With C# 7.2 a new composed access modifier was added: “private protected”. Unfortunately, these modifiers are hard to understand as their names don’t reflect their meaning. Within this article I want to … Weiterlesen
Veröffentlicht unter .NET, C#
Kommentar hinterlassen
Ref Return and Ref Locals in C# 7
The C# language supports passing arguments by value or by reference since the first language version. But returning a value was possible by value only. This has been changed in C# 7 by introducing two new features: ref returns and … Weiterlesen
Veröffentlicht unter .NET, C#
Kommentar hinterlassen
Pattern Matching in C# 7
Patterns are used to test whether a value matches a specific expectation and if it matches patterns allow to extract information from the value. You already create such pattern matchings by writing if and switch statements. With these statements you … Weiterlesen
Veröffentlicht unter .NET, C#
Kommentar hinterlassen
Expression Bodied Members in C# 7
The concept of Expression Bodied Members (EBM) was introduced with C# 6 and as it becomes popular, many enhancements were added with C# 7. Within this article I want to give you the full picture of this feature so I … Weiterlesen
Veröffentlicht unter .NET, C#
Kommentar hinterlassen
C# Array indexer vs. List indexer
The C# CLR contains a lot of nice collection classes. They are optimized for their individual use case. But from a common perspective they all have the same behavior we expect from a collection. But there is one exception from … Weiterlesen
Veröffentlicht unter .NET, C#
1 Kommentar
Discard of return values and out parameters in C# 7
C# 7 allows to discard return values and out parameters. The underscore character is used as wildcard for these not required values. The following source code shows an example of a function call where the caller wants to ignore the … Weiterlesen
Veröffentlicht unter .NET, C#
Kommentar hinterlassen
Design patterns: Command
The Command design pattern encapsulates a request as an object. This will allow adding additional functionality to the request. A typical example is the undo/redo functionality. The command object will be used as mediator between the client and the receiver … Weiterlesen
Veröffentlicht unter .NET, C#, Design Pattern
Kommentar hinterlassen
Methods should do one thing only
According to the Single Responsibility Principle a class should have one, and only one, reason to change. To same statement is valid for methods. A method should do one thing only and therefore have only one reason to change. Unfortunately … Weiterlesen
Veröffentlicht unter .NET, C#, Clean Code
Kommentar hinterlassen
Dependency Inversion by using the Unity Injection Constructor
One of the five SOLID principles is Dependency Inversion. To implement according to this principle you can use interfaces and dependency injection. As a software application normally consists of hundreds or thousands of objects you will have to set up … Weiterlesen
Veröffentlicht unter .NET, C#, Design Pattern
Kommentar hinterlassen
Linq vs Loop: Join
Like in the previous article of this series I want to compare Linq with a classical loop. This time we want to look at data objects which shall be joined to create a result. Again we want to use validated … Weiterlesen
Veröffentlicht unter .NET, C#, LINQ
Kommentar hinterlassen