Demonstration of the is operator to find if the datatype is integer
// function to demonstrate the use of is keyword static void data() { int val = 123; object objVal = val; if (objVal is int) MessageBox.Show(val + " is integer"); }
// function to demonstrate the use of is keyword static void data() { int val = 123; object objVal = val; if (objVal is int) MessageBox.Show(val + " is integer"); }
Leave Your Comment