Exemple #1
0
        public static bool Is(this IType type, AvmTypeCode typeCode)
        {
            if (type == null)
            {
                return(false);
            }
            var instance = type.AbcInstance();

            if (instance == null)
            {
                return(false);
            }
            if (!instance.IsNative)
            {
                return(false);
            }
            return(instance.FullName == typeCode.FullName());
        }