[x] I have verified that I am running the latest version of DisposableFixer: YOUR_VERSION
[x] I have searched open and closed issues to ensure it has not already been reported
Description
The creation of PortConfiguratorViewModel is marked as not disposed, besides it is disposed.
Source Code
namespace SomeNamespace.ViewModel
{
internal class MainViewModel : IMainViewModel, IDisposable
{
public IPortConfiguratorViewModel PortConfigurator { get; }
public MainViewModel()
{
var path = ConfigurationManager.AppSettings["SomeSetting"];
var factory = new AppConfigRepositoryFactory();
var repository = factory.Create(path);
PortConfigurator = new PortConfiguratorViewModel(repository);
}
public void Dispose() {
(PortConfigurator as IDisposable)?.Dispose();
}
}
}
Prerequisites
Description
The creation of PortConfiguratorViewModel is marked as not disposed, besides it is disposed.
Source Code
Screenshot