I am trying to use is operator to compare a variable against a user defined class but my compiler is giving it as an error.
my question is: can we use the ‘is’ operator to compare only to the in built types or can it be used for comparing with the user defined types as well.
Thanks,
It can be used for user defined types too.
A correct syntax looks like: