public void Dispose()
 {
     stream?.Dispose();
 }
 public override void Dispose()
 {
     stream?.Dispose();
 }