Let’s say you need to work with time zones in your .Net Core app and convert the date from UTC to a specific time zone or vice versa if you have a Windows development environment and a Linux production environment. What can go wrong?
[Read More]
Communication With Hosted Service using Channels in .Net Core
When working with file processing, you often need to initiate a long-running task and send the response to the client immediately. Hosted services are a great fit in this case. But what should you do if you need to process specific data with a hosted service? In this case, System.Threading.Channels...
[Read More]
String interning in C# with different code examples
According to Eric Lippert article on MSDN “If you have two identical string literals in one compilation unit, then the code we generate ensures that only one string object is created by the CLR for all instances of that literal within the assembly. This optimization is called string interning.” So...
[Read More]