2021-06-302022-06-12.net C# Yield When building a method that returns IEnumerable, you can use the yield keyword to […]
2021-06-232022-01-14.net Type-safe JSON result in ASP.NET MVC public abstract class BaseController : Controller { protected internal JsonResult<T> Json<T>(T data) […]
2021-06-232022-01-14.net Read/write large blob to SQL Server from C# Rather than try to make it happen in one big command, here’s […]
2021-06-222022-01-13.net .NET Console Application Dependency Injection When working with console applications, you need to manually define your service […]
2021-06-222022-01-13.net Is Development in Razor View I find myself needing to know if I’m in development from inside […]
2021-06-222022-01-13.net Add EXIF date to photo If you have a photo that you need to add a timestamp […]
2021-06-122022-01-13.net C# and, or, not pattern matching Pattern matching in C# gives you the ability to shorten some of […]
2021-06-082022-01-12.net Windows Services with .NET Framework This code demonstrates two simple techniques for Windows services in .NET. First, […]
2021-06-072022-01-12.net C# is null Since C# gives you the ability to change the behavior of built-in […]
2021-06-062022-01-07.net Render view from controller in ASP.NET Core In ASP.NET Core, if you want to render a view to a […]