I'm setting a date on a DateTime type field and I call my web service which is located on the same server using WCF:
// on the client
myObject.Date = DateTime.Now;
myChangedObject = proxy.DoNothing(myObject); // passes back the object
// on the server
public MyObjectType DoNothing(MyObjectType source)
{
var obj = new MyObjectType();
obj.Date = source.Date;
return obj;
}
When it gets to the server the DateTime is precise down to the ticks, but the object I receive back has a different number of ticks.
Assert.IsTrue(myChangedObject.Date == myObject.Date); // fails miserably
What Am I doing wrong here? I verified that the values being stored in