Azure Table Storage, WCF Service and Enum

后端 未结 6 978
故里飘歌
故里飘歌 2021-02-19 09:00

Here\'s my problem. A class which defines an order has a property called PaymentStatus, which is an enum defined like so:

    public en         


        
6条回答
  •  野的像风
    2021-02-19 09:28

    ya i was having this same problem i changed my property which was earlier enum to int. now this int property parses the incoming int and saves it into a variale of the same enum type so now the code that was

    public CompilerOutputTypes Type 
    {get; set;}
    

    is chaged to

    private CompilerOutputTypes type;
    public int Type 
    {
      get {return (int)type;}
      set { type = (CompilerOutputTypes)value; }
    }
    

提交回复
热议问题