Include() private method

private Include ( Field[]>.Dictionary data ) : void
data Field[]>.Dictionary
return void
 public static LocalizationData GetDefaultLocalizationData(Assembly assembly, IEnumerable<ILocalizationDataProvider> providers)
 {
     LocalizationData res = new LocalizationData();
     foreach (var p in providers)
     {
         var data = p.ReadDefaultData(assembly);
         res.Include(data);
     }
     return res;
 }
        void LoadAssemblyLocalizationData(Assembly assembly)
        {
            if (loadedAssemblies.Contains(assembly))
            {
                return;
            }
            var assemblyLocData = GetLocalizationData(assembly);

            localizationData.Include(assemblyLocData);
            loadedAssemblies.Add(assembly);
        }
示例#3
0
        public static LocalizationData GetDefaultLocalizationData(Assembly assembly, IEnumerable <ILocalizationDataProvider> providers)
        {
            LocalizationData res = new LocalizationData();

            foreach (var p in providers)
            {
                var data = p.ReadDefaultData(assembly);
                res.Include(data);
            }
            return(res);
        }
        void LoadAssemblyLocalizationData(Assembly assembly)
        {
            var assemblyName = LocalizationAssemblyHelper.GetAssemblyName(assembly);

            if (loadedAssemblies.Contains(assemblyName))
            {
                return;
            }
            var assemblyLocData = GetLocalizationData(assembly);

            localizationData.Include(assemblyLocData);
            loadedAssemblies.Add(assemblyName);
        }