Boo.Lang.Compiler.TypeSystem.GenericMapping.EntityNeedsMapping C# (CSharp) Метод

EntityNeedsMapping() публичный Метод

public EntityNeedsMapping ( IEntity entity ) : bool
entity IEntity
Результат bool
        public bool EntityNeedsMapping(IEntity entity)
        {
            if (entity is ICallableType)
            {
                if (entity is ExternalCallableType)
                {
                    return false;
                }

                ICallableType callable = entity as ICallableType;

                if (callable.BaseType == _tss.MulticastDelegateType
                    || callable.BaseType.IsSubclassOf(_tss.MulticastDelegateType))
                {
                    return callable.ConstructedInfo != null
                        || callable.GenericInfo != null;
                }
                return true;
            }
            if (entity is IMember)
            {
                IMember member = entity as IMember;
                return member.DeclaringType.ConstructedInfo != null
                    || member.DeclaringType.GenericInfo != null;
            }
            if (entity is IConstructedTypeInfo)
            {
                return true;
            }
            return false;
        }