Possible Duplicate:
Making a generic property
I'm not quite sure how to do that, but what I would like to do is to create a special type of property that will perform specific tasks at the get
and set
, and will be defined on generic type.
For example, when writing this:
MyProp<String> name;
a pre-defined get
and set
will be performed on the string value.
How can that be done?
Thanks!