I have imported a wsdl and i have all my client classes now. I want to add an additional (computed) property to a class for wpf binding purposes. I want a computed property to display along side (and based on) properties returned from the server (in a grid)
to me the logical thing was to create a partial class, same namespace and same class name as the wcf generated class, and add the new computed property to this partial class
namespace TestClient.WSCompanySearch //same namespace as the generated class from wsdl
{
public partial class Company //same class returned by wsdl
{
public bool IsValid
{
get {
if ((this.CloseDate < DateTime.Now) || (this.Rooms == 0))
{
return false;
}
else
{
return true;
}
}
}
}
}
This extra property is definitely there, and i can see it if i code to it, but when i bind, it's as if the custom property is ignored. The breakpoint in the getter is not called, thus indicating that it's not getting called.