Tôi muốn hiển thị các thuộc tính enum cho ứng dụng khách WCF, nhưng tôi chỉ có thể thấy các giá trị enum.Cách hiển thị các thuộc tính enum cho máy khách WCF
Đây là enum:
public enum TemplateType
{
[EnumDescription("Property Particulars")]
[EnumValue("PropertyParticulars")]
PropertyParticulars = 1,
[EnumDescription("Short Format Lists")]
[EnumValue("ShortFormatLists")]
ShortFormatLists,
[EnumDescription("Client Letters")]
[EnumValue("ClientLetters")]
ClientLetters,
[EnumDescription("Labels")]
[EnumValue("Labels")]
Labels
}
Làm thế nào tôi có thể tiếp xúc với các mô tả và tính giá trị gia tăng?
Không để enum để đáp ứng WCF vì lý do tương thích ngược. Xem http://stackoverflow.com/a/788281/52277 –