I want to be able to be able to do something like this:
myDataType Data1;
myDataType Data2;
Data1 = "Something";
Data2 = Data1;
Setting Data1 is easy because I overload the = operator. What I'd like to be able to do is type line 2 as is. Without a default property, I would have to type it as:
Data2 = Data1.theDesiredProperty;
It seems to me that it should be possible to do this, because the string class works in this way. If you replace "myDataType" with "string" (and inlcude the string header file) you don't have to refer to some default property of string.
Thanks.