Sergey Teplyakov
Sergey Teplyakov
Серег, там нужно, чтобы класс реализовывал IEnumerable. Так что со стрингбилдером пример работать не будт.
Пока не понял, какое отношение имеет Rx к методу расширения Add?
Не понял:) А в чем смысл показывать linq синтаксис, когда я хочу показать инициализатор коллекций? Ведь инициализатор коллекций для Rx-а - это же плохой пример. Чего-то я запутался:(
Ага, теперь и я тебя понял. Ок, можно подумать по этому поводу. Но тут нужен тогда не Rx, а custom Rx? В общем, я тебя понял. Подумаю в этом направлени..
ХЗ, это же не с нуля... Ок, я подумаю, может ты и прав.
Pieces for 1: * Benchmark new `InterpolatedStringHandler`-based approach and compare it with the fluent API * Add code fixes to convert the fluent API to interpolated string * Warn when...
Add an analyzer that will warn if the message is the same as the predicate: ```csharp Contract.Requires(x != 0, "x != 0"); // this is a duplicate! ```
Add CI pipeline
Update top level docs with the following benchmarking results: ``` | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |...
Add a refactoring to embed the value if they're used for comparison in the check. Like: `Contract.Requires(x == 42)` to have a refactoring with a custom message: `Contract.Requires(x == 42,...