[x] I have verified that I am running the latest version of DisposableFixer: 2.1.3
[x] I have searched open and closed issues to ensure it has not already been reported
Description
It should be possible to mark a property as tracking, in order to allow assignments from its public settings from other classes.
Source Code
using System;
using System.IO;
namespace MyNamespace
{
class ClassWithPublicSetableProperty : IDisposable
{
public IDisposable MemoryStream { get; set; }
public void Dispose()
{
MemoryStream?.Dispose();
}
}
class MyClass
{
public MyClass()
{
using (var instance = new ClassWithPublicSetableProperty())
{
instance.MemoryStream = new MemoryStream();//should generate a warning about not disposed property of other object
}
}
}
}
Prerequisites
Description
It should be possible to mark a property as tracking, in order to allow assignments from its public settings from other classes.
Source Code
Screenshot