public void TestMethod1() { INativeCrypto impl = NativeImport.Create<INativeCrypto>(""); // Use methods in impl int i = impl.NativeMethod(); //... }