C# Tip: do NOT use nameof to give constants a value
In C#, nameof can be quite useful. But it has some drawbacks, if used the wrong way. Continue readingC# Tip: LINQ's Enumerable.Range to generate a sequence of consecutive numbers
If you need a sequence of numbers, you can pick two ways: use a While loop, or use Enumerable.Range Continue readingC# Tip: Raise synchronous events using Timer (and not a While loop)
When you need to fire synchronous events, don’t use a while(true) loop: use a Timer! Continue readingC# Tip: use the @ prefix when a name is reserved
C#, as every other language, has several reserved keywords. Did you know that you can use them if you use the@ prefix?
Continue reading