aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/Internal
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-08-10 09:07:53 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-08-11 18:17:19 +0200
commit9210293d9e861e16a296da2cdf8cd4df30b85544 (patch)
tree5d74150edfbaffa0bb8b4a5560c0883ee5c1aa3f /src/csharp/Grpc.Core/Internal
parent271cb36f5639ed465f919c9736015bd98a7b7540 (diff)
dont use generic version of Marshal.SizeOf
Diffstat (limited to 'src/csharp/Grpc.Core/Internal')
-rw-r--r--src/csharp/Grpc.Core/Internal/AuthContextSafeHandle.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/csharp/Grpc.Core/Internal/AuthContextSafeHandle.cs b/src/csharp/Grpc.Core/Internal/AuthContextSafeHandle.cs
index 3f5ba27c19..e8e61ebf3c 100644
--- a/src/csharp/Grpc.Core/Internal/AuthContextSafeHandle.cs
+++ b/src/csharp/Grpc.Core/Internal/AuthContextSafeHandle.cs
@@ -75,8 +75,7 @@ namespace Grpc.Core.Internal
private AuthProperty PtrToAuthProperty(IntPtr authPropertyPtr)
{
#pragma warning disable 0618
- // We need to use the obsolete non-generic version of Marshal.PtrToStructure, because the generic version is not available
- // in net45 on Windows.
+ // We need to use the obsolete non-generic version of Marshal.PtrToStructure, because the generic version is not available in net45
var nativeAuthProperty = (NativeAuthProperty) Marshal.PtrToStructure(authPropertyPtr, typeof(NativeAuthProperty));
#pragma warning restore 0618
var name = Marshal.PtrToStringAnsi(nativeAuthProperty.Name);