<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

SafeArrayScope<T>

struct SafeArrayScope<T>
Helper to scope lifetime of a SAFEARRAY created via SafeArrayCreate Destroys the SAFEARRAY (if any) when disposed. Note that this scope currently only works for a one dimensional SAFEARRAY.
public bool IsEmpty { get; }

public bool IsNull { get; }

public T this[int i] { get; set; }

public int Length { get; }

public SAFEARRAY* Value { get; }

public SafeArrayScope(SAFEARRAY* value)

public SafeArrayScope(uint size)

public SafeArrayScope(T[] array)

public static VARIANT op_Explicit(ref SafeArrayScope scope)

public static SAFEARRAY* op_Implicit(ref SafeArrayScope scope)

public static IntPtr op_Implicit(ref SafeArrayScope scope)

public static SAFEARRAY** op_Implicit(ref SafeArrayScope scope)

public static Void** op_Implicit(ref SafeArrayScope scope)

public void Dispose()