MvvmCross.Core.ViewModels.MvxViewModelViewTypeFinder.CheckCandidateTypeIsAView C# (CSharp) Method

CheckCandidateTypeIsAView() protected method

protected CheckCandidateTypeIsAView ( Type candidateType ) : bool
candidateType System.Type
return bool
        protected virtual bool CheckCandidateTypeIsAView(Type candidateType)
        {
            if (candidateType == null)
                return false;

            if (candidateType.GetTypeInfo().IsAbstract)
                return false;

            if (!typeof(IMvxView).IsAssignableFrom(candidateType))
                return false;

            return true;
        }
    }