Merge pull request #85 from Skurdt/patch-1

Added out keyword to ObservableStack.TryPeek
This commit is contained in:
Yoshifumi Kawai 2024-11-11 16:42:53 +09:00 committed by GitHub
commit a16edc16ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ namespace ObservableCollections
} }
} }
public bool TryPeek([MaybeNullWhen(false)] T result) public bool TryPeek([MaybeNullWhen(false)] out T result)
{ {
lock (SyncRoot) lock (SyncRoot)
{ {