✅ Inconsistent accessibility??? Avalonia C#
On
public MainWindowViewModel
I get the error Inconsistent accessibility: parameter type 'HomeScreenViewModel' is less accessible than method 'MainWindowViewModel.MainWindowViewModel(CreateUserViewModel, HomeScreenViewModel, Database, Helpers, GithubService)'
and I'm just not sure what that means.2 Replies
what accessibility level does
HomeScreenViewModel
have?
accessibility meaning public/internal/private/etcok fixing the view model to be public instead of internal fixed that, but now I have another issue if that's ok
HomeScreenView.axaml: https://pastebin.com/Wp7U0CW1
HomeScreenView.axaml.cs: https://pastebin.com/RKJ5QNAS
HomeScreenViewModel.cs: https://pastebin.com/j9C6KYTf
MainWindowView.axaml: https://pastebin.com/iy87tx8P
the view model is empty because I haven't started working on it yet, however, I'm getting the error
I'm looking around google and I'm not finding anything to solve this lol grrr