This library provides examples of MarshalAs
attributes and their usage in .NET methods and properties when taking unmanaged types as arguments to returning managed types to unmanaged callers
- https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalling-behavior
- https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalling-for-arrays
- https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalling-for-objects
- https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalling-for-strings
- https://analystcave.com/excel-use-c-sharp-in-excel-vba/