Jump to content

Add a variable to a class instance at runtime: Difference between revisions

m
Line 595:
For special situations, such as when parsing an input file, where new data type names
may be appropriate, this can be accommodated using a Dict as one of the class variables.
For example, consider the below SOAPJSON input data for a program processing phone numbers,
where the type of phone numbers for the person is unknown until run-time:
<lang xml>
4,108

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.