Table of Contents

Struct ComSafeArrayMarshaller<T>.UnmanagedToManagedRef

Namespace
CsCom.Runtime
Assembly
CsCom.Runtime.dll

Receives an array by reference in a COM object implemented in .NET, which can change it in place or replace it. A replaced array is destroyed, as the callee of an [in, out] parameter must do.

public struct ComSafeArrayMarshaller<T>.UnmanagedToManagedRef
Inherited Members

Methods

Free()

Invalidates the view after the call.

public readonly void Free()

FromManaged(ComSafeArray<T>?)

Takes the array returned by the method.

public void FromManaged(ComSafeArray<T>? managed)

Parameters

managed ComSafeArray<T>

FromUnmanaged(nint)

Wraps the SAFEARRAY pointer passed by the caller.

public void FromUnmanaged(nint unmanaged)

Parameters

unmanaged nint

ToManaged()

Gets a view of the array passed by the caller.

public readonly ComSafeArray<T>? ToManaged()

Returns

ComSafeArray<T>

ToUnmanaged()

Gets the SAFEARRAY pointer returned to the caller.

public readonly nint ToUnmanaged()

Returns

nint