/// <inheritdoc/>
 public override bool Equals(object obj)
 {
     return(OnDispose?.Equals(obj) ?? false);
 }
 /// <inheritdoc/>
 public bool Equals(DisposableAction other)
 {
     return(OnDispose?.Equals(other.OnDispose) ?? false);
 }
 /// <inheritdoc/>
 public override bool Equals(object obj)
 {
     return(OnDispose.Equals(obj));
 }