Dave Zych
  • Home
  • About
  • Contact
  • Privacy

cast

A collection of 1 post
as

Avoid using the is keyword in C#

The C# language has the is keyword which allows you to check if a variable is of a given type. if(myVar is MyClass) This is commonly helpful when dealing with a variable of type object, checking if a type extends a base class, checking if a type implements an
Sep 8, 2013 2 min read
Page 1 of 1
Dave Zych © 2026
  • Data & privacy
  • Contact
Powered by Ghost