Esempio n. 1
0
        public static bool HasFeature(string[] keywords, SnowDefineFeature feature)
        {
            string f = GetFeatureName(feature);

            for (int i = 0; i < keywords.Length; ++i)
            {
                if (keywords[i] == f)
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
        public static string GetFeatureName(SnowDefineFeature feature)
        {
            string ret;

            if (sFeatureNames.TryGetValue(feature, out ret))
            {
                return(ret);
            }
            string fn = System.Enum.GetName(typeof(SnowDefineFeature), feature);

            sFeatureNames[feature] = fn;
            return(fn);
        }