mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
903 B
32 lines
903 B
using System; |
|
using System.Runtime.InteropServices; |
|
using Mono.VisualC.Interop; |
|
|
|
namespace Tests |
|
{ |
|
public interface IVirtualMethodTestClass : ICppClass { |
|
[Virtual] void V0 (CppInstancePtr @this, int a1, int a2, int a3); |
|
} |
|
|
|
public static class VirtualMethodTestClass { |
|
|
|
public static CppInstancePtr Create () |
|
{ |
|
return CreateVirtualMethodTestClass (); |
|
} |
|
|
|
public static void Destroy (CppInstancePtr vmtc) |
|
{ |
|
DestroyVirtualMethodTestClass ((IntPtr)vmtc); |
|
} |
|
|
|
|
|
[DllImport("CPPTestLib")] |
|
private static extern IntPtr CreateVirtualMethodTestClass (); |
|
|
|
[DllImport("CPPTestLib")] |
|
private static extern void DestroyVirtualMethodTestClass (IntPtr vmtc); |
|
} |
|
|
|
} |
|
|
|
|