private static void PreLoadLibrary() { System.Text.EncodingProvider provider = System.Text.CodePagesEncodingProvider.Instance; System.Text.Encoding.RegisterProvider(provider); LoadLibraryEx("D3D9.dll", IntPtr.Zero, LoadLibraryFlags.LOAD_LIBRARY_SEARCH_SYSTEM32); }
public MainPage() { this.InitializeComponent(); System.Text.EncodingProvider provider = System.Text.CodePagesEncodingProvider.Instance; System.Text.Encoding.RegisterProvider(provider); alert.Visibility = Visibility.Collapsed; }
static int _m_RegisterProvider_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { System.Text.EncodingProvider _provider = (System.Text.EncodingProvider)translator.GetObject(L, 1, typeof(System.Text.EncodingProvider)); System.Text.Encoding.RegisterProvider( _provider); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public static void RegisterProvider(System.Text.EncodingProvider provider) { }