Skip to content

Commit 80f6501

Browse files
committed
Added exception XML doc
1 parent e4baaea commit 80f6501

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Microsoft.Toolkit.HighPerformance/Buffers/MemoryOwner{T}.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public ref T DangerousGetReference()
212212
/// Gets an <see cref="ArraySegment{T}"/> instance wrapping the underlying <typeparamref name="T"/> array in use.
213213
/// </summary>
214214
/// <returns>An <see cref="ArraySegment{T}"/> instance wrapping the underlying <typeparamref name="T"/> array in use.</returns>
215+
/// <exception cref="ObjectDisposedException">Thrown when the buffer in use has already been disposed.</exception>
215216
/// <remarks>
216217
/// This method is meant to be used when working with APIs that only accept an array as input, and should be used with caution.
217218
/// In particular, the returned array is rented from an array pool, and it is responsibility of the caller to ensure that it's

0 commit comments

Comments
 (0)