Added out keyword to ObservableStack.TryPeek

This commit is contained in:
Skurdt 2024-11-11 03:30:56 +01:00 committed by GitHub
parent b92e0de242
commit 6e263fa123
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)
{ {
@ -212,4 +212,4 @@ namespace ObservableCollections
return GetEnumerator(); return GetEnumerator();
} }
} }
} }