/// <summary> /// Initialized the resource manager. This must be done before accessing any other method of property (including static). /// </summary> internal static void InitializeResourceManager() { if (i18nResourceMan == null) { i18nResourceMan = new I18nResourceManager("Library.I18nResources", typeof(I18nResources).Assembly); FieldInfo field = typeof(I18nResources).GetField("resourceMan", BindingFlags.NonPublic | BindingFlags.Static); field.SetValue(null, i18nResourceMan); } }
public ComponentResourceManager(Type type) : base(type) { resxBasedResourceManager = new I18nResourceManager(type); }