Since C# now supports using static System.String; to get to the string static classes, we can now use this to … More
Category: C#
.NET, C#, Mono, EF, ASP.NET, and everything else surrounding C#.
Getting ready for “Async Main” for C#
Here is the MD for Async Main https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/async-main.md The problem is, you want to code for it now, so that … More
Setting up my VSTS build environment
This is a summary of nightmares and preferences. This is a C# ASP.NET MVC Core project. Do not assume that … More
Securing your base code for SPAs using ASP.NET MVC the easy way
For this you will only need 1 controller, and 1 optional view. The controller is to provide routing details to … More
Word of the day!
TUPLE as in System.Tuple Look it up
Date handling in C#
To understand this, walk the code. You can see it work at https://dotnetfiddle.net/LLl1Za
How to have your asp.net site convert images to embedable strings.
C# code to encode images into HTML How to embed these image into CSS How to embed these images into … More
Why hasn’t MS updated the SSRS Viewer in a while?
From https://connect.microsoft.com/SQLServer/feedback/details/798562/add-auto-refresh-option-for-reports-on-manage-report-page-to-report-manager Thanks for your feedback! When the report is going through the actual Report Viewer (e.g. Report Manager), we … More
Brain Teaser: You have 3 dates with 3 offsets, from 3 variables, how do you find the newest date, but without using IF?
When is your code done? When you finish the refactor refactor refactor rule.
Since unit test cases should be written before the actual code, you cannot say that code is done when the … More