-
Archives
- May 2010
- April 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- December 2007
- July 2007
- June 2007
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- October 2004
- August 2004
- July 2004
- June 2004
- December 1969
-
Meta
Category Archives: .NET
Split a Camel-Cased word into its components
I needed to split a camel-cased word into it’s component parts, and found the following extension method to help out. It works pretty well. public static string SplitCamelCase( this string str ) { return Regex.Replace( Regex.Replace( str, @"(\P{Ll})(\P{Ll}\p{Ll})", "$1 $2" … Continue reading
Posted in .NET, C# Snippets, Extension Methods, Uncategorized
Leave a comment
Fuzzy-Matching of names
Yesterday at work, I had to try to knock together a quick application to parse a database table and pull out records with a matching name. Simple at first glance, but more complex when you think about the common mis-spellings … Continue reading
ASP.NET MVC – Deploying on Win XP
This is the second in a series of posts about things I found out while learning ASP.NET MVC. Today : Setting up your development XP machine to run your site. This is actually quite a simple one, but be warned, … Continue reading
ASP.NET MVC – Preparing for the real world
This is the first in a series of posts about things I found out while learning ASP.NET MVC. Today : adding jQuery support that will work wherever the app is deployed in a directory structure. In order to reference the … Continue reading
System.Linq – Unleash the power!
I’ve been poking about with the System.Linq namespace in C# 3.5 this week. Like most “new” areas of a language, it can be difficult to find the time or motivation to delve into the capabilities it provides, but I’ve just … Continue reading
Windows 7 on the MacBook
I’ve just installed Windows 7 on my MacBook’s BootCamp partition, and so far it looks great. I’m not new to Win7, having had it installed in a Parallels VM since it was released. The experience on the MacBook’s native hardware, … Continue reading
Posted in .NET, MacBook, Win7, windows
Leave a comment
Iterate through enum values
A quick example of how to iterate through the values in an enum… enum myEnum { one, two, three, four, five, }; foreach (int i in Enum.GetValues(typeof(myEnum ))) { myEnum myItem = (myEnum )Enum.ToObject(typeof(myEnum ), i); System.Diagnostics.Debug.WriteLine(myItem.ToString()); }
Posted in .NET, C# Snippets, General, Software
Comments Off
A List of LiveWriter Plugins
As well as my own humble effort, there are quite a few others out there writing LiveWriter plugins. A good place to start looking would be here or here.
Posted in .NET, General, LiveWriter Plugins
Comments Off
So what am I up to now?
Well, about 5 weeks ago I joined Avanade as a solution Developer, and since joining I’ve had all kinds of things going on – not least of which was a trip to Seattle for an orientation / training week. It … Continue reading
Posted in .NET, Avanade
Leave a comment
Determine if an assembly is a debug or release build
*This code originally came from another blog, although it was written in VB over there. It has lost some elegance in the translation, but I needed a very quick solution this afternoon, and I needed it in C#, so here … Continue reading
Posted in .NET, C# Snippets, Software
1 Comment