Inconsistent accessibility: field type 'world' is less accessible than field 'frmSplashScreen
问题 I have this error called Inconsistent accessibility: field type 'world' is less accessible than field 'frmSplashScreen' In my code there is a public partial class called frmSplashScreen There is also a public class called world The line that caused the error was: private world currentWorld; The above line is in the class frmSplashScreen What is causing the problem? 回答1: Generally this happens because your field is private . You must change it to public : public world currentWorld; For more on