public static void NotifyMissingDispose(System.IDisposable disposable)
        {
            if (disposable == null)
            {
                return;
            }

            Debug.LogError($"An IDisposable instance of type '{disposable.GetType().FullName}' has not been disposed.");
        }
Example #2
0
 /// <summary>
 /// This can be used as an alternative to throwing a System.ObjectDisposedException.
 /// </summary>
 public static void NotifyDisposedUsed(System.IDisposable disposable)
 {
     Debug.LogError($"An instance of type '{disposable.GetType().FullName}' is being used although it has been disposed.");
 }