Sergey Teplyakov

Results 85 issues of Sergey Teplyakov

```csharp [StructRecord] public struct FooBar { [ToStringAsCollection] public string[] X {get; set;} } ``` And in this case the member X will be printed with the content of the array...

Во-первых, пару слов по формату электронной версии книги: как я понимаю, PDF-файл представляет собой точную копию отпечатанной книги. Возможно его удобно читать с компьютера. Однако частенько такие книги читают с...

Custom contract validators (methods marked with `ContractArgumentValidator`) should not contains any other calls of the `Contract` class except the call to the `Contract.EndContractBlock`: ``` csharp [ContractArgumentValidator] public void Guard() {...

enhancement

Show an error when "old-style precondition" uses inaccessible member in the contract check: `````` csharp using System.Diagnostics.Contracts; class Sample { private bool _isValid; public void Foo() { // error CC1038:...

feature

Warn for using less accessible members in guard methods marked with `ContractArgumentValidator': ``` csharp public static class ContractValidator { [ContractArgumentValidator] public static void Guard(bool condition) { if (condition) throw new...