public void aliasPrefixTest4() { using (dynamic l = new ConariX(gCfgUnlib)) { l.Prefix = "apiprefix_"; string xfun; if (IntPtr.Size == sizeof(Int64)) { xfun = "?getD_HelloWorld@API@UnLib@Conari@r_eg@net@@YAPEBDXZ"; } else { xfun = "?getD_HelloWorld@API@UnLib@Conari@r_eg@net@@YAPBDXZ"; } l.Aliases["HelloWorld"] = new ProcAlias( xfun, new AliasCfg() { NoPrefixR = true } ); string exp = "Hello World !"; Assert.Equal(exp, l.HelloWorld <CharPtr>()); l.Prefix = ""; Assert.Equal(exp, l.HelloWorld <CharPtr>()); } }