Bottles.Services.BottleServiceApplication.IsLoaderTypeCandidate C# (CSharp) Метод

IsLoaderTypeCandidate() публичный статический Метод

public static IsLoaderTypeCandidate ( Type type ) : bool
type System.Type
Результат bool
        public static bool IsLoaderTypeCandidate(Type type)
        {
            if (!type.IsConcreteWithDefaultCtor()) return false;

            if (type.Closes(typeof (IApplicationSource<,>))) return true;

            return type.CanBeCastTo<IApplicationLoader>();
        }