|
|
@ -75,8 +75,7 @@ namespace Grpc.Core.Internal |
|
|
|
private AuthProperty PtrToAuthProperty(IntPtr authPropertyPtr) |
|
|
|
private AuthProperty PtrToAuthProperty(IntPtr authPropertyPtr) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#pragma warning disable 0618 |
|
|
|
#pragma warning disable 0618 |
|
|
|
// We need to use the obsolete non-generic version of Marshal.PtrToStructure, because the generic version is not available |
|
|
|
// We need to use the obsolete non-generic version of Marshal.PtrToStructure, because the generic version is not available in net45 |
|
|
|
// in net45 on Windows. |
|
|
|
|
|
|
|
var nativeAuthProperty = (NativeAuthProperty) Marshal.PtrToStructure(authPropertyPtr, typeof(NativeAuthProperty)); |
|
|
|
var nativeAuthProperty = (NativeAuthProperty) Marshal.PtrToStructure(authPropertyPtr, typeof(NativeAuthProperty)); |
|
|
|
#pragma warning restore 0618 |
|
|
|
#pragma warning restore 0618 |
|
|
|
var name = Marshal.PtrToStringAnsi(nativeAuthProperty.Name); |
|
|
|
var name = Marshal.PtrToStringAnsi(nativeAuthProperty.Name); |
|
|
|