Mobile/CafeLib.Mobile/Services/MobileService.cs
/// <summary>
/// Gets the name of a view based on the associated view model.
/// </summary>
Gets the name of a view based on the associated view model.
Gets the name of a view based on the associated view model .
private static string PageNameFromViewModel(MemberInfo viewModelTypeInfo)
        {
            var viewModelName = viewModelTypeInfo.Name;
            if (viewModelName.EndsWith(ViewModelSuffix))
            {
                return viewModelName.Replace(ViewModelSuffix, PageSuffix);
            }
            throw new FormatException($"{viewModelName} is treated as view model but does not end with '{ViewModelSuffix}'. Name should be '{viewModelName}{ViewModelSuffix}', expected corresponding view should be named '{viewModelName}{PageSuffix}'.");
        }
private static string PageNameFromViewModel ( MemberInfo viewModelTypeInfo ) { var viewModelName = viewModelTypeInfo . Name ; if ( viewModelName . EndsWith ( ViewModelSuffix ) ) { return viewModelName . Replace ( ViewModelSuffix , PageSuffix ) ; } throw new FormatException ( $" { viewModelName }  is treated as view model but does not end with ' { ViewModelSuffix } '. Name should be ' { viewModelName } { ViewModelSuffix } ', expected corresponding view should be named ' { viewModelName } { PageSuffix } '. " ) ; }
Gets the name of a view based on the associated view model.
Gets the name of a view based on the associated view model .
viewModelTypeInfo
MemberInfo