Tag Archives: .NET

Updates to Common.net

On my GitHub Lib https://github.com/LibertyEngineeringMovement/CommonNET I have added two more libraries that are commonly recoded by many people. So rather than recoding again, I have added here. JsonNetResult – for those of use who like the JSon.NET library better than … Continue reading

Posted in Brian's Code Extreme | Tagged | Leave a 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

A nifty question on how to reverse strings using c#.

Now I could have used the built in fuction of .reverse(), but then how would that show off my skillsets. ;) Execute here: https://dotnetfiddle.net/FV8fFv

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

Flash, Silverlight, Linux Emulation… All in common is JavaScript

All of these are written in JavaScript Here is a Flash host that doesn’t require the flash plugin. http://mozilla.github.io/shumway/ A silverlight host, which needs more work on the code to read the XAP packages http://wsick.github.io/Fayde/ Migrate your C# to Javascript? … Continue reading

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

SSRS Integration with Microsoft ASP.NET MVC 4 and Razor

[UPDATE: I have dumped SSRS, Click Here for details.] This is a massive excerpt from http://forums.asp.net/t/1963101.aspx?SSRS+Report+Viewer+in+MVC4 I will be rewriting this to meet my needs, and so that I don’t violate copyright. :) There is a lot of code here … Continue reading

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

Adding Metadata to Schema EF 6.x in C#

If you are one of those shortcut guys like me, and marshal your DB models to your views, then here is a way to add metadata to your models without having the T4 template wipe your added code out. Comments … Continue reading

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

Make your own code candy in C#.

Pseudo candy public void DoSomething(action myAction){try{myAction.invoke();} catch {//Do some special handling}} Usage var _a = “a;”DoSomething(new {o} ->{//Do something to invoke.Console.Writeline(_a);}); Summary As you can see, we can use the action delegate to create a method wrapper to do something … Continue reading

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