FluorineFX Asobject Automatic Conversion base class Autoparseasobject

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.