Mobile/CafeLib.Mobile/Services/MobileService.cs
/// <summary>
/// Find corresponding page type for a view model type.
/// </summary>
/// <param name="viewModelTypeInfo">view model type</param>
/// <returns>page type</returns>
Find corresponding page type for a view model type.
Find corresponding page type for a view model type .
private Type FindPageType(MemberInfo viewModelTypeInfo)
        {
            var pageTypeInfo = _appAssembly
                .CreatableTypes()
                .Inherits<IPageBase>()
                .SingleOrDefault(x => x.Name == PageNameFromViewModel(viewModelTypeInfo));
            return pageTypeInfo?.AsType();
        }
private Type FindPageType ( MemberInfo viewModelTypeInfo ) { var pageTypeInfo = _appAssembly . CreatableTypes ( ) . Inherits < IPageBase > ( ) . SingleOrDefault ( x => x . Name == PageNameFromViewModel ( viewModelTypeInfo ) ) ; return pageTypeInfo ? . AsType ( ) ; }
Find corresponding page type for a view model type.
Find corresponding page type for a view model type .
None
viewModelTypeInfo
MemberInfo
view model type
view model type