Circular definition in a constant enum

后端 未结 4 1775
别跟我提以往
别跟我提以往 2021-01-04 01:18

I\'m trying to create a constant of type Enum but I get a error.. My enum is:

public enum ActivityStatus
{
    Open = 1,
    Close = 2
}
         


        
4条回答
  •  庸人自扰
    2021-01-04 01:56

    To avoid from the Circular Definition Problem in C#, You can reference/call the variable/type/member etc with full qualified name like

    Namespace..Member/Type/ etc
    

    Hope you will fix the error by now.

提交回复
热议问题