C#

Checking if Object is of Type in C#

To check if an object is of a certain type in c#, simply use the is statement: if (myPerson is Person) { // Variable is of type Person }

2019-02-12T11:20:05-04:00February 12, 2019|
Go to Top