AlexS <sa***********@SPAMsympaticoPLEASE.ca> wrote:
Check GetType and TypeOf
x instanceOf y
will be
x.GetType()==y.GetType();
or
TypeOf(x)==TypeOf(y);
No it's not. For instance:
FileStream fs = new FileStream (...);
(fs instanceof Stream) should be true, but that won't work with the
above.
The equivalent C# operator to Java's "instanceof" operator is "is".
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too