I have a class like so
[DataContract]
public MyClass
{
private string _Name;
private bool _NameIsModified = false;
public string Name;
{
get { return _Name; }
set
{
_Name = value;
_NameIsModified = true;
}
}
}
When a clients requests this class via a WCF service modifies the objects and sends it back to the server the _NameIsModified is not being set. (I totally see what this is happening).
On both the server and client I have access to MyClass. Is it be possible to retrieve the Proxy MyClass and cast it to a new instance of MyClass or have the WCF service load it directly into a MyClass instance.