Skip to content

Commit

Permalink
Update xml comment for {ReadOnly}Memory.Pin method (dotnet/corefxdotn…
Browse files Browse the repository at this point in the history
…et/coreclr#29137) (dotnet/coreclr#17593)

Signed-off-by: dotnet-bot-corefx-mirror <[email protected]>

Commit migrated from dotnet/coreclr@dbbb54c
  • Loading branch information
dotnet-bot authored and ahsonkhan committed Apr 16, 2018
1 parent 7937336 commit 11467bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/coreclr/src/mscorlib/shared/System/Memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,11 @@ public Span<T> Span

/// <summary>
/// Creates a handle for the memory.
/// The GC will not move the array until the returned <see cref="MemoryHandle"/>
/// The GC will not move the memory until the returned <see cref="MemoryHandle"/>
/// is disposed, enabling taking and using the memory's address.
/// <exception cref="System.ArgumentException">
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
/// </exception>
/// </summary>
public unsafe MemoryHandle Pin()
{
Expand Down
5 changes: 4 additions & 1 deletion src/coreclr/src/mscorlib/shared/System/ReadOnlyMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ public ReadOnlySpan<T> Span

/// <summary>
/// Creates a handle for the memory.
/// The GC will not move the array until the returned <see cref="MemoryHandle"/>
/// The GC will not move the memory until the returned <see cref="MemoryHandle"/>
/// is disposed, enabling taking and using the memory's address.
/// <exception cref="System.ArgumentException">
/// An instance with nonprimitive (non-blittable) members cannot be pinned.
/// </exception>
/// </summary>
public unsafe MemoryHandle Pin()
{
Expand Down

0 comments on commit 11467bf

Please sign in to comment.