예제 #1
0
        internal protected virtual bool OnIsFindable(Type type)
        {
            if (!Finder.IsFindable(type))
            {
                return(false);
            }

            EntitySettings es = EntitySettings.TryGetC(type);

            if (es != null && !es.OnIsFindable())
            {
                return(false);
            }

            if (IsFindable != null)
            {
                foreach (var isCreable in IsFindable.GetInvocationListTyped())
                {
                    if (!isCreable(type))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
예제 #2
0
        internal protected virtual bool OnIsFindable(Type type)
        {
            if (!Finder.IsFindable(type))
            {
                return(false);
            }

            EntitySettings es = EntitySettings.TryGetC(type);

            if (es != null && !es.OnIsFindable())
            {
                return(false);
            }

            return(true);
        }