This class is used for Flash AMF Protocol parsing
The application of AMF protocol will encounter a data conversion problem, that is, from Asobject to. NET class
Such as: Battlefield information in the three Blood kingdoms
Convert to. NET Battlefield Information class
Type conversions such as this can be done using Autoparseasobject as the base class for automatic parsing, before using this base class to define the corresponding database, the field or property name in the class must be with the conversion object one to (interested friends can add their own type attributes, This is more flexible)
The following is the Autoparseasobject code, of course, except for the AMF data Object conversion can also be applied to other data conversion processes, such as database structure classes, JSON data processing,
The principle is to create an instance object by using the type from the dynamic, and to automatically type the relevant data value to get a new instance.