Sergey Teplyakov

Results 86 issues of Sergey Teplyakov

Not sure I can think of any cases when this is a good idea. Any errors in this code will be unobserved.

In this case, the warning should be different and it should be covered by the memory analyzer.

Potentially the following code could be unsafe: ```csharp using System; public class C { public void M() { int n = 42; Foo(n); Action a = () => {Console.WriteLine(n); n++;};...

Enumerators for BCL collections (and any struct-based iterators) SpinLock Analyze the BCL to find other instances.

This is the case: ```csharp [DebuggerDisplay("{Foo,nq}") class FooBar { private string Foo() {return string.Empty;} } ```

It could sounds very simple and unlikely to happen, but I just got the situation when I've assigned property to itself! And as far as I know, there was even...