Skip to content

Commit fa50478

Browse files
committed
Add clarifying comments regarding fake IDisposable implementation
1 parent 6e2a98a commit fa50478

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Rubberduck.VBEEditor/Events/VbeEvents.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,12 @@ private void ComponentReloadedHandler(object sender, ComponentEventArgs e)
180180
#region IDisposable
181181

182182
private bool _disposed;
183-
183+
/// <remarks>
184+
/// This is a not a true implementation of IDisposable pattern
185+
/// because the method is made private and is available only
186+
/// via the static method <see cref="Terminate"/> to provide
187+
/// a single point of entry for disposing the singleton class
188+
/// </remarks>
184189
private void Dispose(bool disposing)
185190
{
186191
if (!_disposed && _projects != null)

0 commit comments

Comments
 (0)