Bill Tudor

Weblog

  Home  |   Contact  |   Syndication    |   Login
  49 Posts | 0 Stories | 95 Comments | 0 Trackbacks

News

Copyright © Bill Tudor

Archives

Post Categories

c#

Visual Studio 2010 beta2 + Framework 4.0 . . . with a few comments on Windows Virtual PC. Installation I don’t “work” on my laptop – mostly used for travel, library, watching Hulu and channel 9, etc. Since I will be out of town for a while, however, I decided to install VS20101b2 in a winVPC for the trip on the laptop. The only complaint about the new VPC offering from Microsoft is that when it is running, it takes forever for my notebook to initiate sleep mode. I don’t recall the old product having...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Static Reflection in .Net Where have I been? I recently took a few minutes to look through the latest MSDN magazine and ran across a nice article by Jeremy Miller on “Functional Programming for Everyday .NET Development”. The section titled “Lambdas as Data” was my first introduction to static reflection in .Net. Where the heck have I been? I don’t write database persistence code, so I am not familiar with NHibernate (or fluent NHibernate) (which is where Jeremy’s sample comes from), but I am still...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

The Process class in .Net makes it easy to run command line tools from within a .Net program. Here is an implementation with a couple of twists: Environment variable expansion Optional asynchronous execution Transformation of output into an enumerable collection of objects The implementation takes the form of an object named CommandLineTool with the following constructors: public CommandLineTool(string command) : this(command, String.Empty, Environment.CurrentDirectory, _defaultTransform) { }public...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati