WCF DataContract ToString function

前端 未结 3 472
我寻月下人不归
我寻月下人不归 2020-12-21 06:20

Can you override the ToString function in a WCF DataContrat? Right now I have:

[DataContract]
public class Keyword
{
    public int ID { get; set; }
    pub         


        
3条回答
  •  没有蜡笔的小新
    2020-12-21 06:48

    Remember too that if you own both the server and the client, that often you can use a shared library for data contracts rather than generating a client proxy. If you do that, then you can have the same method on both the server and client as they're exactly the same type.

提交回复
热议问题