* Add example Added an example of how to use is keyword * Fixed error in syntax highlighting
		
			
				
	
	
	
		
			466 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			466 B
		
	
	
	
	
	
	
	
title
| 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.
Example
  int number = 6;
  Console.WriteLine(number is long);    // False
  Console.WriteLine(number is double);  // False
  Console.WriteLine(number is int);     // True