avoiding the hazards of code redundancy since 93

The perfect is the enemy of the good.

About Me

Name: Michael I. Buen

The opposite of neub. A Filipino programmer

View my complete profile

My Fave Links
  • A gentle introduction to SQL
  • Inquirer 7
  • Planet Source Code
  • DevX
  • Programmers Heaven
  • Free VB Code
  • VB Accelerator
  • VB Helper
  • VB City
  • VBNet Visual Basic Resource Center
  • Blackbelt VB
  • C# Station
  • C# on Linux
  • C# Tutorial
  • gizmag
  • undextrois' programming anecdotes and code snippets
  • My latest blog

  • IRC - Quakenet Server, #tayotayolang
  • Skype Me
  • Yahoo Message Me
  • Mail Me
  • Yahoo Call Me
  • Web-based typing speed test

Previous Posts

  • CNN.com - Do brighter walls make brighter students...
  • USATODAY.com - A false Wikipedia 'biography': "Whe...
  • The Truth about Nullable Types and VB...: The Tru...
  • Crossroads for VB6 Users - Computerworld: "Berkshi...
  • Microsoft: .NET Surpasses J2EE in Enterprise Devel...
  • Calling a COM Component From C# ( Late Binding)
  • Mapping UNIX/Linux Shares On a Windows Server 2003...
  • Mapping UNIX/Linux Shares On a Windows Server 2003...
  • Mapping UNIX/Linux Shares On a Windows Server 2003...
  • Welcome to JustLinux: Wanna learn Linux?: Moun...

Powered by Blogger

Tuesday, December 20, 2005

Coding Horror: VB.NET vs C#, round two



Here is another example:

VB.Net

Dim m_car As Car = DirectCast(mapper.GetObject(GetType(Car), Car)
m_car.Model = "Nissan"

C#

Car car = (Car)mapper.GetObject(typeof(Car));
car.Model = "Nissan";

permanent link posted by Michael I. Buen @ 9:30 PM 

0 Comments:

Post a Comment

<< Home