C# Tip: How to temporarily change the CurrentCulture 2022-03-08 2 min read CSharp Tips What can you do if you need to temporarily change the CurrentCulture in C#? Continue reading
C# Tip: Exception handling with WHEN clause 2022-02-08 2 min read CSharp Tips Instead of using if-else or switch blocks to handle exceptions, you can do it gracefully using the ‘when’ keyword. Continue reading
C# Tip: use yield return to return one item at the time 2021-12-14 4 min read CSharp Tips Yield is a keyword that allows you to return an item at the time instead of creating a full list and returning it as a whole. Continue reading
C# Tip: Use a SortedSet to avoid duplicates and sort items 2021-11-16 3 min read CSharp Tips Using the right data structure is crucial to building robust and efficient applications. So, why use a List or a HashSet to sort items (and remove duplicates) when you have a SortedSet? Continue reading
C# Tip: use the Ping class instead of an HttpClient to ping an endpoint 2021-10-19 2 min read CSharp Tips Sometimes you need to ping some endpoints. Don’t rely on HttpClient, but use the native Ping class. Continue reading
C# tip: define Using Aliases to avoid ambiguity 2021-09-21 3 min read CSharp Tips Sometimes we need to use objects with the same name but from different namespaces. How to remove that ambiguity? By Using Aliases! Continue reading
C# tip: create correct DateTimes with DateTimeKind 2021-08-07 2 min read CSharp Tips Creating simple DateTimes creates issues when handling timezones. You can solve some issues by using DateTimeKind Continue reading