Pattern Matching With C#