Category Archives: C#

.NET, C#, Mono, EF, ASP.NET, and everything else surrounding C#.

Solar Powered Netduino

Advertisements

Posted in Brian By Experience, Brian's Code Extreme, C# | Tagged | Leave a comment

Word of the day!

TUPLE as in System.Tuple Look it up  

Posted in Brian By Experience, Brian's Code Extreme, C# | Tagged | Leave a comment

Date handling in C#

To understand this, walk the code. You can see it work at https://dotnetfiddle.net/LLl1Za

Posted in Brian's Code Extreme, C# | Tagged | Leave a comment

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 HTML

Posted in ASP.NET, Brian's Code Extreme, C#, C-Langs, CSS, HTML | Leave a comment

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 are using .NET to refresh the content, which runs into the issue you described in the initial post. To workaround … Continue reading

Posted in Brian's Code Extreme, C#, Servers, SQL | Tagged , | 1 Comment

Brain Teaser: You have 3 dates with 3 offsets, from 3 variables, how do you find the newest date, but without using IF?

Posted in Brian's Code Extreme, C# | Tagged | Leave a comment

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 unit test all pass. You need the RRR rule. Legibility (Readability) Code that runs on and one in a single … Continue reading

Posted in Brian's Code Extreme, C#, C-Langs, JavaScript, NO SQL, PL-SQL, SQL, T-SQL | 1 Comment