freeCodeCamp/guide/english/csharp/is/index.md

10 lines
276 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: is
---
## is
The `is` keyword checks if an object is compatible with a given type, or (starting with C# 7) tests an expression against a pattern.
#### More information:
- [C# Reference: is](https://docs.microsoft.com/dotnet/csharp/language-reference/keywords/is)