We have an old guidelines note to use IsAssignableFrom() followed by a
hard cast as opposed to using the 'as' keyword followed by a check for
null, but there is no explanation for why this approach should be used.
There are also no comments on the 'is' keyword approach to casting.  Can
somebody please explain why?

I don't appear to be giving Google the right keywords because I'm not
finding anything specific on this.  This note was made in the .NET 1.1
days and this code base is now .NET 2.0 with the possibility of going to
.NET 3.0 or 3.5 very soon.

Alex

******************************************************************
This email and any files transmitted with it from the El Paso
Corporation are confidential and intended solely for the
use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the
sender.
******************************************************************

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to