code-o-rama
code that won't rust, bust, pick-up dust, burst, buckle or bend
Browse by Tags
All Tags
»
c#
(RSS)
.net
.net 2.0
.net 3.5
assembly
coding
debugging
dvorak
keyboard
macro
msbuild
mstest
nunit
probing
refactor
strong name
test signing
tracing
unit test
validating reader
visual studio
vs
windows
windows installer
wix
xml
Correct Comparisons for files and paths in .NET
01 February 08 12:36 PM
|
john
|
0 Comments
So exactly how should you compare file and path names in .NET programs? Ordinal case insensitive comparisons are the correct approach according to this MSDN article .
Read More...
Dynamic Code Generation in .NET
05 January 08 03:08 PM
|
john
|
0 Comments
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less.
Read More...
VS Macro to insert TODO
04 May 07 04:59 PM
|
john
|
2 Comments
Here's another useful VS macro. When I write code there are always weird edge cases that I think of while so I like to liberally sprinkle // TODO: comments around. When you do this though you should always put in your alias and the date. That way someone
Read More...
Running MSBuild scripts programmatically
01 May 07 11:39 AM
|
john
|
2 Comments
I love msbuild. Before it came along I was a big nant user, but now I'm an msbuild convert. It's not perfect, but it sure is better than batch files. It really, really needs embeddable code snippets, and a debugger but once it has those it will totally
Read More...
Reader Writer Lock in .NET 3.5
20 April 07 04:26 PM
|
john
|
2 Comments
I was directed to this really great blog by Joe Duffy on the new ReaderWriterLockSlim in .NET 3.5. Vance also has a good blog too.
Read More...
Reading Custom Configuration Sections in .NET 2.0
22 March 07 09:35 AM
|
john
|
2 Comments
I just spent an annoying amount of time figuring out how to do this because sadly our documentation is so bad. So I'm going to blog it quickly so that I at least have a record of what I did and hopefully someone else will find it useful. Thanks go to
Read More...
Standalone Unit Test Programs
29 December 06 10:20 PM
|
admin
|
2 Comments
In the project that I'm working on we wanted to have certain of our MSTest unit tests be available as standalone programs. Various reasons for this include: It is useful for demos It's makes certain debugging scenarios a little easier, i.e. those where
Read More...
Assembly Probing and Windows Installer
09 January 06 08:13 PM
|
john
|
0 Comments
Some platform features are like the stuff hiding under rocks at the seashore. No, I don't mean the one's that are slimey and stinky. I'm talking about the one's that are interesting but hard to spot. But, all you need to do is catch a glimpse of them
Read More...
Refactor NUnit Tests to MSTest
03 January 06 09:43 PM
|
john
|
0 Comments
If you have been using NUnit to write your unit tests, and you have access to Visual Studio 2005 Team System you'll want to consider upgrading your NUnit tests to the VS Unit Test Framework, which I'll call VSUnit for short. There is a walkthrough that
Read More...
Test Signing and Instrumentation
30 December 05 07:54 PM
|
john
|
1 Comments
Boy, I seem to spend all my time in the deep dark recesses of the CLR. OK, this post is a little bit out there; I hope someone finds it useful. There's a problem with doing instrumented profiling of applications in Visual Studio 2005 Team System that
Read More...
Refactoring XmlValidatingReader in .NET 2.0
28 December 05 12:42 PM
|
john
|
0 Comments
I seem to have come across this several times in the past week or two, so it's worth making a note. In .NET 2.0 XmlValidatingReader is obsolete. You need to do something like the following in order to create a validating reader now: XmlReaderSettings
Read More...
John's Dvorak Keyboard Self Help Guide
16 August 05 03:03 PM
|
john
|
0 Comments
You find yourself facing a seemingly broken logon screen. Every character you type seems to come out as some other character. Perhaps you know JohnL-S had something to do with configuring that system. You type ASDF and it comes out AOEU. What’s going
Read More...
Search
Go
This Blog
Home
Tags
.net
.net 2.0
.net 3.5
2003
assembly
bugs
c#
c++
coding
command line
console
coverage
debugging
dll
dvorak
editing
ethereal
fonts
fun
funny
hardware
help
ide
instrumentation
internet explorer
keyboard
macro
microsoft
msbuild
mstest
mvid
network
nunit
packet
performance
points
powershell
probing
profiling
refactor
registry
safe code
screen saver
security
side-by-side
strong name
sxs
tcptrace
team foundation
team system
test signing
tfs
tips
tracing
tweaks
unit test
validating reader
vb
vista
visual basic
visual studio
vs
windows
windows installer
winpcap
wix
xbox 360
xml
xp
Navigation
Home
Blogs
Photos
Archives
February 2008 (2)
January 2008 (2)
December 2007 (1)
October 2007 (6)
September 2007 (1)
July 2007 (7)
May 2007 (3)
April 2007 (2)
March 2007 (5)
February 2007 (3)
January 2007 (3)
December 2006 (2)
November 2006 (2)
May 2006 (1)
January 2006 (3)
December 2005 (2)
August 2005 (3)
Useful Links
C# Code Format
Director of Random Technologies
Syndication
RSS 2.0
Atom 1.0