June 2017
Beginner to intermediate
274 pages
6h 49m
English
Properties simplify the construction of descriptors for a common case, but there are use cases where we need a descriptor that the property can't handle well. For example, what if we were planning on making a class that represented remote data and we wanted its attributes to push and pull data from a remote source? We could do this with properties, but we'd end up writing very similar code over and over as we implement each attribute.
It would be better to have a RemoteResource descriptor class and just add a bunch of instances to our local stub class. Let's go ahead and do that as an example using the RemoteResource descriptor; refer to the following code example:
Read now
Unlock full access