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 [http://msdn.microsoft.com/en-us/library/scekt9xw%28v=vs.90%29.aspx] 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
Sep 8, 2013 1 min read
Page 1 of 1
Dave Zych © 2025
  • Data & privacy
  • Contact
Powered by Ghost