internal static void SafeDispose(ref OciHandle handle)
 {
     if (handle != null)
     {
         handle.Dispose();
     }
     handle = null;
 }
Пример #2
0
        internal static void SafeDispose(ref OciHandle ociHandle)
        {
            //  Safely disposes of the handle (even if it is already null) and
            //  then nulls it out.
            if (null != ociHandle)
            {
                ociHandle.Dispose();
            }

            ociHandle = null;
        }