forked from Misaki/GhostEngine
12 lines
234 B
C#
12 lines
234 B
C#
using Ghost.Core.Contracts;
|
|
|
|
namespace Ghost.Core.Utilities;
|
|
|
|
internal static class InternalResource
|
|
{
|
|
public static void Release<T>(ref T? resource)
|
|
where T : IReleasable
|
|
{
|
|
resource?.InternalRelease();
|
|
}
|
|
} |