From 9264ec999eb42ecff8cd36068b051cf6e8f16501 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Wed, 21 Feb 2018 03:42:12 +0000 Subject: [PATCH] Fix TryGetOwnedMemory xml docs Signed-off-by: dotnet-bot-corefx-mirror --- .../System/Runtime/InteropServices/MemoryMarshal.cs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs index c0c270d..633f56d 100644 --- a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs +++ b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs @@ -40,9 +40,14 @@ namespace System.Runtime.InteropServices } /// - /// Get a from the underlying memory. - /// If unable to get the , return false with a default . + /// Gets a from the underlying readOnlyMemory. + /// If unable to get the type, returns false. /// + /// The element type of the . + /// The type of to try and retrive. + /// The memory to get the owner for. + /// The returned owner of the . + /// A indicating if it was successful. public static bool TryGetOwnedMemory(ReadOnlyMemory readOnlyMemory, out TOwner ownedMemory) where TOwner : OwnedMemory { @@ -52,9 +57,16 @@ namespace System.Runtime.InteropServices } /// - /// Get a and , on the from the underlying memory. - /// If unable to get the , return false with a default . + /// Gets a and , from the underlying memory. + /// If unable to get the type, returns false. /// + /// The element type of the . + /// The type of to try and retrive. + /// The memory to get the owner for. + /// The returned owner of the . + /// The offset from the start of the that the represents. + /// The length of the that the represents. + /// A indicating if it was successful. public static bool TryGetOwnedMemory(ReadOnlyMemory readOnlyMemory, out TOwner ownedMemory, out int index, out int length) where TOwner : OwnedMemory { -- 2.7.4