public static DllInvoke GetDllInvoke() { if (_dllInvoke == null) { if (string.IsNullOrEmpty(sDllPath)) { sDllPath = String.Format(@"{0}pos_ad_dll.dll", Utils.Substitute(AppDomain.CurrentDomain.BaseDirectory, @"\")); } _dllInvoke = new DllInvoke(sDllPath); } return(_dllInvoke); }
public static void MyDispose() { _dllInvoke.MyDispose(); _dllInvoke = null; }