C#怎样在重写ToString()方法中一次返回多个值,如下

public string clientCode { get; set; }
public string clientName { get; set; }
public string abbreviation { get; set; }

public override string ToString()
{
return clientCode,clientName,contacts;
}
这是一个类中,以上三个都要重写,有没有一次都重写的方法!本人新手,谢谢各位指导
我其实是绑定的是combobox控件中显示,每个都显示在不同的combobox控件中,这样就需要在同一个类中重写3个属性的tostring,但是这样不行,我开始是用笨办法建立三个相同的内容的类,分别重写,但是属性一多就不行了;

 你还可以这么做:
class A
{
public string clientCode { get; set; }
public string clientName { get; set; }
public string contacts { get; set; }
public Func<A, string> sel = x => string.Format("{0},{1},{2}", x.clientCode,x.clientName,x.contacts);
public override string ToString()
{
return sel(this);
}
}

调用的时候,如果你要改变,这么写
A a = new A();
a.sel = x => x.clientCode;

toString方法返回值只有一个就是String 类型,而且这个方法功能就是显示对象的属性信息的,可以把三个属性加起来拼接成一个显示当前对象信息的字符串。

你可以返回一个string[]

 return string.Format("{0},{1},{2}", clientCode,clientName,contacts);

都是string类型的属性,直接调用类的属性就行了呀