Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1c0374f

Browse files
committedApr 24, 2024·
INumber constraint
1 parent 37ad74f commit 1c0374f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/libraries/System.Runtime.InteropServices/ref/System.Runtime.InteropServices.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ public static partial class ExceptionAsDefaultMarshaller<T> where T : unmanaged
367367
public static T ConvertToUnmanaged(System.Exception e) { throw null; }
368368
}
369369
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))]
370-
public static partial class ExceptionAsHResultMarshaller<T> where T : unmanaged
370+
public static partial class ExceptionAsHResultMarshaller<T> where T : unmanaged, System.Numerics.INumber<T>
371371
{
372372
public static T ConvertToUnmanaged(System.Exception e) { throw null; }
373373
}
374374
[System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsNaNMarshaller<>))]
375-
public static partial class ExceptionAsNaNMarshaller<T> where T : unmanaged
375+
public static partial class ExceptionAsNaNMarshaller<T> where T : unmanaged, System.Numerics.IFloatingPointIeee754<T>
376376
{
377377
public static T ConvertToUnmanaged(System.Exception e) { throw null; }
378378
}

0 commit comments

Comments
 (0)
Please sign in to comment.