Clicky Web Analytics April 2005 - Posts - Brenton House

April 2005 - Posts

Did something happen to IPropertyChange ??

Under previous builds of .NET 2.0 there was an interface System.ComponentModel.IPropertyChange

There is even this page describing the interface:

http://msdn2.microsoft.com/library/t1hdf260(en-us,vs.80).aspx

But when I try to compile applications that built under previous builds, I get this build error:

Error 1 The type or namespace name 'IPropertyChange' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?) 

Any ideas?

** Thanks Cory Smith!!  The new interface is:  System.ComponentModel.INotifyPropertyChanged

 

 

Converting Hashtables to Generic Dictionaries

When using a dictionary you can do the following:

Hashtable hashtable = new Hashtable();
string test;
test = (string)hashtable["a"];  // test is “a”
test = (string)hashtable["c"]; // test is null

However, when converting this to a generic dictionary, it has a different expected behaviour:

Dictionary<string, string> dictionary = new Dictionary<string, string>();
string test;
test = dictionary["a"];  // test is “a”
test = dictionary["c"];  // throws KeyNotFoundException’

You can either do this:

Dictionary<string, string> dictionary = new Dictionary<string, string>();
string test;
try
{
    test = dictionary["c"];  // throws KeyNotFoundException’
}
catch
{
    test = null;
}
or use the more generic approach:

dictionary.TryGetValue( "c", out test );  // test is null

If the key is not found, then the value parameter gets the appropriate default value for the value type V;
for example, zero (0) for integer types, false for Boolean types, and null for reference types.

 

Posted by dotnetboy2003 | with no comments
Filed under:

Future of Media Broadcasting: Engadget interview with Jeremy Allaire

http://www.engadget.com/entry/1234000490039649/

Jeremy Allaire, formerly of Macromedia, formerly of Allaire Corp, was interviewed by engadget about his new company Brightcove.  Some interesting stuff here.  Knowing Jeremy, I am sure that he will have a hand in how the next generation of media broadcast takes shape.

 

 

The Beta Experience (VS.NET Beta 2) April 25th

http://www.microsoft.com/emea/msdn/betaexperience/

Counting down the days… 


 What can you expect from the Beta Experience?

Visual Studio 2005 Team System Beta 2

Team Foundation Server Beta 2

WeFly247 training DVD

SQL Server 2005 Standard Edition Community Technology Preview

The Beta Experience newsletter (6-weekly, terminated with the launch of the final version of Visual Studio 2005)

Come back and join the Beta Experience on April 25th.

Posted by dotnetboy2003 | with no comments

VMware 5.0 Workstation is released

http://www.vmware.com/products/desktop/ws_features.html

Version 5.0 has some new features that make it my preferred virtual machine software right now. 

  • For instance, you can mount a virtual hard drive while VMware is not running.
  • Multiple snapshots with visual snapshot manager
  • Cloning (both full and linked)
  • Shared machines (Team support)

 

 

Posted by dotnetboy2003 | with no comments

C# 2.0 Stuff

Since I have been doing a lot with VS.NET 2005 (2006?), I hope to publish some of the stuff I have been working on soon. I think I will probably wait until after Beta 2 comes out (April 15th?) to make sure that everything works with that build.

Things that I have been working on are:

  • A comprehensive unit test generator
  • CruiseControl.NET integration with MSBuild
  • Generic Dictionary that is Xml Serializable
  • Various MSBuild Tasks
  • Assembly Loader
  • A global search & replace command line utility
  • A project output cleanup utility
  • Temp folder cleanup utility
  • Conversion of some older projects to .NET 2.0

Hopefully .NET 2.0 Beta 2 will be release on or around April 15th…


 

Atlanta C# User Group

Well, I went to my first Atlanta C# User Group meeting last night.  It was very interesting.  Keith Rome did a presentation on Asynchronous Programming.  You can download the presentation here. I thought it was a very good presentation that covered a lot of area in the short amount of time he was given.

There was also a presentation on the new C# 2.0 features but unfortunately I was unable to stay for the whole presentation. 

 

PDC05 - More info posted

http://msdn.microsoft.com/events/pdc/

Welcome to the 2005 Microsoft Professional Developers Conference, the definitive event focused on the future of the Microsoft platform.

PDC 2005 offers attendees the opportunity to learn, connect and engage with Microsoft's platform developers and the global developer community with keynotes, breakout sessions, interactive labs, access to the latest code, community forums and much, much more.

Registration will open in late May, with a special 15% discount off the registration price of $1,995 if you register by July 21 (a discounted price of $1,695).

We're looking forward to seeing you there!

September 13 – 16, 2005
Pre-conferences September 11 and 12
 
More Posts