Click here to Skip to main content
16,004,647 members
Articles / Programming Languages / C#

Is operator working simulation

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
12 Jul 2011CPOL 6.6K  
I think your function is no (theoretical) replacement for the is operator.The is operator takes an object (left) and a type (right) as arguments, not two objects.The is operator considers inheritance. Look at this (executable) example:using System;namespace IsOperatorCheck{ ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Austria Austria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions