Esempio n. 1
0
        /// <summary>
        /// 注册文件资源
        /// </summary>
        /// <param name="fileName"></param>
        public void Register(string fileName)
        {
            var map = Load <TResource>(fileName);

            if (map != null && map.Count > 0)
            {
                FileResources.Add(fileName);
                foreach (var pair in map)
                {
                    if (!Resources.ContainsKey(pair.Key))
                    {
                        Resources[pair.Key] = pair.Value;
                    }
                }
            }
        }