ExceptionAsNaNMarshaller<T> 類別

定義

將所有例外狀況轉換為 NaN

generic <typename T>
 where T : value classpublic ref class ExceptionAsNaNMarshaller abstract sealed
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsNaNMarshaller<>))]
public static class ExceptionAsNaNMarshaller<T> where T : struct
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsNaNMarshaller<>))>]
type ExceptionAsNaNMarshaller<'T (requires 'T : struct)> = class
Public Class ExceptionAsNaNMarshaller(Of T)

類型參數

T

要傳回 NaN 值的 Unmanaged 型別。

繼承
ExceptionAsNaNMarshaller<T>
屬性

方法

ConvertToUnmanaged(Exception)

指定的例外狀況轉換為 NaN

適用於