Esempio n. 1
0
        public static bool IsMethod(this Type t, TypeStore typeStore, string name)
        {
            var method = GetMethodsOfType(t, true, true).Concat(typeStore.GetExtensionMethodsOf(t))
                         .Where(f => (f.Name == name || AliasManager.Instance.GetAlias(f) == name) && !f.IsSpecialName)
                         .FirstOrDefault();

            return(method != null);
        }