diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs b/src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs index 73a3721801..6e6d6ee2b6 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/SafeBuffer.cs @@ -109,7 +109,7 @@ namespace System.Runtime.InteropServices } /// <summary> - /// Specifies the the size of the region in memory, as the number of + /// Specifies the size of the region in memory, as the number of /// elements in an array. Must be called before using the SafeBuffer. /// </summary> [CLSCompliant(false)] @@ -126,7 +126,7 @@ namespace System.Runtime.InteropServices } /// <summary> - /// Specifies the the size of the region in memory, as the number of + /// Specifies the size of the region in memory, as the number of /// elements in an array. Must be called before using the SafeBuffer. /// </summary> [CLSCompliant(false)] @@ -173,15 +173,10 @@ namespace System.Runtime.InteropServices pointer = null; RuntimeHelpers.PrepareConstrainedRegions(); - try - { - } - finally - { - bool junk = false; - DangerousAddRef(ref junk); - pointer = (byte*)handle; - } + + bool junk = false; + DangerousAddRef(ref junk); + pointer = (byte*)handle; } public void ReleasePointer() |