-
Help Visual Studio
Hello, Guys
I will install the Group Forum on my Ʃmulator Plus R3.4
But i have this message, i don't enderstand..
Can you help me ?
https://www.noelshack.com/2017-11-1489836292-aide.png
Thanks for you reponse !
(Sorry im french, my english is too bad ! :P)
-
Re: Help Visual Studio
Can you help us and translate that message to English..?
-
Re: Help Visual Studio
Yes !
Message :
Severity Code Description Project File Line Delete statusError CS0050 Inconsistent accessibility: Return type 'GroupingForumManager' is less accessible than the 'Game.GetGroupForumManager ()' method More Emulator C: \ Users \ norma \ Desktop \ repack \ More Emulator Updated \ HabboHotel \ Game.cs 163 Active
Severity Code Description Project File Line Delete statusError CS0050 Inconsistent accessibility: Return type 'GroupingForumManager' is less accessible than the 'Game.GetGroupForumManager ()' method More Emulator C: \ Users \ norma \ Desktop \ repack \ More Emulator Updated \ HabboHotel \ Game.cs 163 Active
-
Re: Help Visual Studio
The error basically describes that your property doesn't have the same visibility as your method
Do you mind posting the source code of Game.cs?
Use pastebin.com
-
Re: Help Visual Studio
-
Re: Help Visual Studio
Aha,
You're trying to return an instance of the GroupManager class from a public method and the GroupManager class doesn't seem to be public, probably internal.
E.g:
Code:
internal class GroupManager
should be
public class GroupManager
-
Re: Help Visual Studio
This is simple you're class which you're returning is "Less accessible" then your method.
Example:
Class GroupForumManager -> private
Method GetGroupForumManager() -> public
The class which you're returning must always be equally accessible or more accessible then the method which is returning that class.