Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C#
/
Pattern matching
What does value is string text establish when the match succeeds?
from Pattern matching
C# 14 / .NET 10
beginner
1 min
What does value is string text establish when the match succeeds?
value has a compatible string runtime type, and text is non-null.
value may be null, and text receives an empty string.
value is converted by calling ToString.
Only the compile-time type is checked.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the age classifier
Spot the bug
A new version is available
Reload