简体   繁体   中英

How do I solve Error CS0161 'Service.SignUpAsync(string, string, string, string, string, string, bool)'

I'm getting the below error from a function/method in a custom class in Xamarin

Severity    Code    Description Project File    Line    Suppression State
Error   CS0161  'Service.SignUpAsync(string, string, string, string, string, string, bool)': not all code paths return a value
        
C:\Users\username\source\myrepos\MyApp\MyApp\Services\Service.cs    17  

this will occur if the method does not end with a return statement, see documentation in the link below

https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0161

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM