C# 7: Is Operator Patterns - You won't need 'as' as often

added by DotNetKicks
4/6/2017 12:59:31 PM

3 Kicks, 529 Views

C# has long supported two operators to check the type of an object: is and as. C# 7 adds a new way to use the is operator that combines is with basic patterns to provide an alternative for as.


0 comments