Commit c5555c3
committed
Update disposal check for .NET version compatibility
Refactored ThrowIfDisposed to use ObjectDisposedException.ThrowIf for .NET 7.0 or greater, while retaining the previous pattern for .NET 6.0. This improves code compatibility and leverages newer framework features where available.1 parent daa130d commit c5555c3
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
407 | 411 | | |
408 | 412 | | |
409 | 413 | | |
| |||
0 commit comments