N
Neil Zanella
Hello,
I would like to see some practical uses of the C# is operator.
This operator is not present in C++ and I would like to know
what some good uses of it are... after all if I declare a
variable as int, I know that it is an int, so there is
no point to writing stuff like:
int x = 0;
if (x is int)
Console.WriteLine("x is an integer.");
Thank you for your feedback,
Neil
I would like to see some practical uses of the C# is operator.
This operator is not present in C++ and I would like to know
what some good uses of it are... after all if I declare a
variable as int, I know that it is an int, so there is
no point to writing stuff like:
int x = 0;
if (x is int)
Console.WriteLine("x is an integer.");
Thank you for your feedback,
Neil