Esempio n. 1
0
        public static string[] GetResourceClassesFromExtension(ERedExtension extension)
        {
            var result = s_extensionsToClass[extension];

            if (string.IsNullOrEmpty(result))
            {
                return(null);
            }
            return(result.Split(','));
        }
Esempio n. 2
0
 public static string[] GetResourceClassesFromExtension(ERedExtension extension)
 {
     try
     {
         return(s_extensionsToClass[extension].Split(','));
     }
     catch (KeyNotFoundException)
     {
         return(null);
     }
 }