Exemplo n.º 1
0
 public bool IsUnityImplicitType([NotNull] IDeclaredType declaredType, [NotNull] IPsiModule module)
 {
     foreach (KeyValuePair <string, string> pair in m_unitySettings.UnityClasses.EnumIndexedValues())
     {
         IDeclaredType typeByClrName = TypeFactory.CreateTypeByCLRName(pair.Value, module);
         if (declaredType.IsSubtypeOf(typeByClrName))
         {
             return(true);
         }
     }
     return(false);
 }
        public bool Catches(IDeclaredType exception)
        {
            if (exception == null)
            {
                return(false);
            }

            if (Node.ExceptionType == null)
            {
                return(false);
            }

            return(exception.IsSubtypeOf(Node.ExceptionType));
        }