Jan 2, 2011
Let's say we have a class, let's call it CLS_Object for simplicity. Now, suppose CLS_Object has 2 public properties, "Name" as String and "Value" as String. These have both read/write methods into the properties.
View 7 Replies
Now let's go to a seperate class, let's say CLS_Example. Let's create this variable:
_OBJ_Object as New CLS_Object
Now, let's create a property, called PROP_Object that is READ ONLY...
If we allow that to return _OBJ_Object, the user can the also SET VALUES to that object. In the context of "well, the property is returning the object and you are writing to the object, not the property", I understand this behavior. But it means you can write to a read-only object of sorts.