public void basicTest3() { using (dynamic l = new ConariX(gCfgUnlib)) { string exp = "Hello World !"; Assert.Equal(exp, l.get_HelloWorld <CharPtr>()); Assert.Equal(exp, l.bind <Func <CharPtr> >("get_HelloWorld")()); var dyn = l.bind(Dynamic.GetMethodInfo(typeof(CharPtr)), "get_HelloWorld"); Assert.Equal(exp, (CharPtr)dyn.dynamic.Invoke(null, Array.Empty <object>())); } }