[Mono-list] typeof(string)

Gaurav Vaish gvaish@iitk.ac.in
Fri, 15 Mar 2002 22:30:25 +0530


----- Original Message ----- 
From: "Dan Lewis" <dihlewis@yahoo.co.uk>
To: "Gaurav Vaish" <gvaish@iitk.ac.in>; <mono-list@ximian.com>
Sent: Friday, March 15, 2002 22:13
Subject: Re: [Mono-list] typeof(string)


: No problem ;-) By the way, if you really want 'is' operator semantics, you'd
: probably best write the following:
: 
:   if (typeof (string).IsAssignableFrom (destinationType)) { ... }
: 
: But then again I haven't seen too many classes derived from string...

    Well, actually you can't.
    "public sealed class String"


Cheers,
Gaurav Vaish
http://home.iitk.ac.in/student/gvaish
http://calendar.yahoo.com/mastergaurav
---------------------------------


: 
: Dan.
: 
: 
: __________________________________________________
: Do You Yahoo!?
: Everything you'll ever need on one web page
: from News and Sport to Email and Music Charts
: http://uk.my.yahoo.com