Files
CustomerPanel-Test/libs/Disposer.cs
2026-03-05 09:56:57 +01:00

20 lines
425 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C4IT_CustomerPanel.libs
{
static class Disposer
{
public static void DisposeAll(this Object clx)
{
IDisposable disposeable = clx as IDisposable;
if (disposeable != null)
disposeable.Dispose();
}
}
}