File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Rubberduck.VBEEditor/Utility Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Rubberduck . VBEditor . Utility
4
4
{
5
- public sealed class DisposalActionContainer < T > : IDisposable
5
+ public interface IDisposalActionContainer < out T > : IDisposable
6
+ {
7
+ T Value { get ; }
8
+ }
9
+
10
+ internal sealed class DisposalActionContainer < T > : IDisposalActionContainer < T >
6
11
{
7
12
public T Value { get ; }
8
13
private readonly Action _disposalAction ;
@@ -32,7 +37,7 @@ public void Dispose()
32
37
33
38
public static class DisposalActionContainer
34
39
{
35
- public static DisposalActionContainer < T > Create < T > ( T value , Action disposalAction )
40
+ public static IDisposalActionContainer < T > Create < T > ( T value , Action disposalAction )
36
41
{
37
42
return new DisposalActionContainer < T > ( value , disposalAction ) ;
38
43
}
You can’t perform that action at this time.
0 commit comments