Closed dscopra closed 7 years ago
This problem only occurs, when return value of Subscribe() is not stored in a local variable.
I was able to reproduce the problem with the following code:
using System.IO;
namespace DisFixerTest.MethodCall {
class MethodCallWithoutSavingReturnValue {
public MethodCallWithoutSavingReturnValue() {
Create();
}
private MemoryStream Create() {
return new MemoryStream();
}
}
}
Fixed