Patrick Steele's .NET Blog
Implements ICodeWithDotNet
-
CodeMash REST Endpoints Updated
You spoke, we listened. We've got updates to the CodeMash REST endpoints!
-
Use Dependency Injection To Simplify Application Settings
We've all seen and written code that accesses data from our app.config or web.config file. We'll throw some simple settings in there:
-
CodeMash 2.0.1.0 REST Interfaces
This year's CodeMash website has two URI's that expose CodeMash Information:
-
Using Windsor to inject dependencies into ASP.NET MVC ActionFilters
I'm using Windsor as my IoC container for an ASP.NET MVC application. To get dependency injection in my controllers, I'm using a slightly modified WindsorControllerFactory from Andre Loker's post earlier this year. It works great and allows me to easily test my controllers.
-
Extension Properties
A couple of weeks ago, a post I made about Strongly Typed Session Variables in ASP.NET led to some interesting comments and discussion. One of the comments asked "Why can't we just have extension properties…?". Now, Eric Lippert has provided the answer. See his "Why No Extension Properties?" post to read about the decisions that go into adding (or not adding) a language feature.
-
This isn't an error?
I just saw something odd in a diff before a check-in. Basically, I had a trailing comma in an object initializer:
-
Unit Tests and Debug.Assert()
I recently found some code that had a couple of issues:
-
LINQ and Homework
My daughter asked me to check her homework today. One of the math problems was:
-
SRT's Bill Wagner wins "Emerging Leader of the Year" Award from Automation Alley
Last night, SRT vice president and co-founder Bill Wagner received the "Emerging Leader of the Year Award" from Automation Alley. This annual event is Southeast Michigan’s most prestigious, competitive honors for technology organizations and their leaders. As an employee of SRT solutions, this comes as no surprise to me. Bill's continuous emphasis on new technologies is an everyday occurrence. Whether he's speaking at User Groups (or running them!), updating Effective C# for .NET 4.0 or working on tough technology problems with clients, Bill is always the go-to guy with the answers.
-
Strongly Typed Session Variables in ASP.NET MVC
This post was originally going to be a comment on Jarret@Work's blog post about "Using Extension Methods for Session Values", but I decided to make a full blog post out of it. Jarret employed extension methods such Bar()/SetBar() and Foo()/SetFoo() to have strongly-typed session data. While his method certainly works, I've taken a different approach that I think is a bit more flexible and reads better.