27 lines
466 B
C#
27 lines
466 B
C#
![]() |
using System;
|
|||
|
|
|||
|
namespace Jellyfish.Library
|
|||
|
{
|
|||
|
public abstract class DisposableBase : IDisposable
|
|||
|
{
|
|||
|
protected DisposableBase()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
~DisposableBase()
|
|||
|
{
|
|||
|
Dispose(false);
|
|||
|
}
|
|||
|
|
|||
|
public void Dispose()
|
|||
|
{
|
|||
|
Dispose(true);
|
|||
|
GC.SuppressFinalize(this);
|
|||
|
}
|
|||
|
|
|||
|
protected virtual void Dispose(bool disposing)
|
|||
|
{
|
|||
|
}
|
|||
|
}
|
|||
|
}
|