Sharing Enum with WCF Service

后端 未结 4 2198
你的背包
你的背包 2020-12-13 08:53

I have few different applications among which I\'d like to share a C# enum. I can\'t quite figure out how to share an enum declaration between a regular application and a WC

4条回答
  •  有刺的猬
    2020-12-13 09:20

    you could assign int values to your Enum members and just use int's for transfer and when necessary cast them back into your Enum type

提交回复
热议问题