Error: Default Parameter specifiers not permitted

Options
I have been getting the Error "Default Parameter specifiers not permitted" AccountServices.cs at line 93 a lot. I've found that for some dumb reason .Net 3.5 doesn't allow default parameters which is down right stupid. Anyways, the fix it to set MonoDevelop to use 4.0 but unfortunately, that setting keeps flipping back to 3.5. Anyways, I was hoping that there'd be a more permanent fix for this issue. For the time being I just made the function RegisterByEmailAsync overloaded with and without the "Action<AccountService> callback" parameter.

Comments

  • Tobias
    Options
    It should not be an issue as the file is just for the Editor and afaik, that does not complain.

    Anyways, you can fix this as you have the code. Edit the line by removing the "= null" part. This will break some code that calls this method. Fix that code by adding a final parameter ", null".
    Sorry for the hassle. As said: I never had this complaint.
    Which Unity version do you use??