1
Vote

Fluent interface for pattern matching.

description

The PatternMatching API should propose a fluent interface so that it is not possible to have 2 else clauses for example. The patch attached new interface which define the allowed operations (With<T>, With, Else, EndMatch) and correctly manages them. It does not modify the implementation. However, Code Contracts have been added with a conditional compilation constant CONTRACTS for Pattern matching.

file attachments

comments