[x] I have verified that I am running the latest version of DisposableFixer: 1.1.1
[x] I have searched open and closed issues to ensure it has not already been reported
Description
When creating a object that does not implement IDisposable, it is marked as not disposed.
Source Code
namespace SelectManyTest
{
internal class Dummy
{
#region ObjectCreations
//Here Should be no "Property not disposed" warning
public object ObjectCreationWithGetter{get { return new object(); }}
public object ObjectCreationWithGetterAndLocalVariable{
get{
var objectCreationWithGetterAndLocalVariable = new object();
return objectCreationWithGetterAndLocalVariable;
}}
public object ObjectCreationWithExpressionBody => new object();
#endregion
#region Constants
public object Constant{get { return 0; }}
public object ConstantWithExpressionBody => 0;
#endregion
#region MethodInvocation
public object MethodInvaocationWithGetter{get { return Create(); }}
public object MethodInvaocationWithExpressionBody => Create();
public object Create() => new object();
#endregion
}
}
Prerequisites
Description
When creating a object that does not implement IDisposable, it is marked as not disposed.
Source Code
Screenshot