initial
This commit is contained in:
19
libs/Disposer.cs
Normal file
19
libs/Disposer.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user