Skip to content

Tim’s Blog

Software developer

Monthly Archives: June 2021

Startup configure method

Did you know that you can inject any object in the Configure method of your startup class? For example if you want to inject ICustomer.

Posted bytimdinh20/06/202105/07/2024Posted inASPNET Core, C#, dotnet coreTags: aspnet, c#, csharp, dotnet, programming

Date and time arithmetics

One of our developer wrote this code He is combining the date and time but in a clumsy way. What he’s doing is composing a string then convert it to DateTime. A lot of junior developers do this way for some reasons. What a lot of developers tend to forget is that using date and …

Continue reading “Date and time arithmetics”

Posted bytimdinh13/06/202105/07/2024Posted inC#Tags: c#, csharp, programming

Recent Posts

  • Secure Your Local Development: Generate HTTPS Certificates for .test or .internal Domains
  • Embracing Clean Code: Why Quick Hacks Are OK—But Only Temporarily
  • Do not returns null
  • C# Exception Handler
  • Startup configure method

Archives

  • February 2025
  • December 2024
  • July 2024
  • June 2024
  • June 2021

Categories

  • ASPNET Core
  • C#
  • coding
  • dotnet core
  • Uncategorized
Tim’s Blog, Proudly powered by WordPress.