語言

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 的值。

繼承
ExceptionAsNaNMarshaller<T>
屬性

方法

名稱 Description
ConvertToUnmanaged(Exception)

將指定的例外 NaN轉換為 。

適用於