ExceptionAsDefaultMarshaller<T> Class

Definition

Converts the exception to the default value of the specified unmanaged type.

C#
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsDefaultMarshaller<>))]
public static class ExceptionAsDefaultMarshaller<T> where T : struct

Type Parameters

T

The unmanaged type.

Inheritance
ExceptionAsDefaultMarshaller<T>
Attributes

Methods

ConvertToUnmanaged(Exception)

Converts the specified exception to the default value of the unmanaged type.

Applies to

Product Versies
.NET 8, 9, 10