Skip to content

Commit

Permalink
Merge pull request #85 from Skurdt/patch-1
Browse files Browse the repository at this point in the history
Added out keyword to ObservableStack.TryPeek
  • Loading branch information
neuecc authored Nov 11, 2024
2 parents b92e0de + 6e263fa commit a16edc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ObservableCollections/ObservableStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public T Peek()
}
}

public bool TryPeek([MaybeNullWhen(false)] T result)
public bool TryPeek([MaybeNullWhen(false)] out T result)
{
lock (SyncRoot)
{
Expand Down Expand Up @@ -212,4 +212,4 @@ IEnumerator IEnumerable.GetEnumerator()
return GetEnumerator();
}
}
}
}

0 comments on commit a16edc1

Please sign in to comment.