c# - Error CS0052 Inconsistent accessibility: field type 'FormDataEntryFilterType' is less accessible than field 'FormDataEntry.type' -


this question has answer here:

i not know problem not accept " public " in enum formdataentryfiltertype , want change outside if can me, lot

the code :

    enum formdataentryfiltertype {     integernumber,     decimalnumber,     string }  public partial class formdataentry : form {      public static string inputresult;     **public** formdataentryfiltertype type = formdataentryfiltertype.decimalnumber;       .     .     . 

your formdataentry.type field public, enum type private. enum defaults private because no access modifier has been specified.

to fix this, can make enum public:

public enum formdataentryfiltertype {     integernumber,     decimalnumber,     string } 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -