Пример #1
0
        public static readonly string RequireNameFull = typeof(IRequire <>).FullName.Substring(0, typeof(IRequire <>).FullName.Length); // IRequire'1

        public static bool IsIRequire(IInterface iRequire)
        {
            if (iRequire == null)
            {
                return(false);
            }


            if (iRequire.ShortName != RequireName)
            {
                return(false);
            }

            if (iRequire.GetClrName().FullName != RequireNameFull)
            {
                return(false);
            }

            return(true);
        }