20 lines
425 B
C#
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();
|
|
|
|
}
|
|
}
|
|
}
|