Beispiel #1
0
        public static bool Is(this IElement element, Type type)
        {
            IElement     resolveType = element.ResolveType();
            IElement     declaration = resolveType.GetDeclaration();
            ITypeElement findType    = CodeRush.Source.FindType(declaration.FullName);

            return(findType.Is(type));
        }