}
Here's a test script that illustrates the problem:
// This works great!
SmartDate d = new SmartDate();
d.Date = DateTime.Now;
// This does't work at all.
TestClass
// compile error for above line is this:
//Cannot modify the return value of 'TestClass.MySmartDate' because it is not a variable
// This does work.
TestClass tc = new TestClass();
tc.MySmartDate = new SmartDate(DateTime.Now);
It appears that the set logic in the property definition trumps your ability to modify properties of the property object.
Is this intended? Is there a work-around?
Copyright (c) Marimer LLC