Suppose i have input array byte A[50];
i have put three diffrent data types values in array as below
- string of length 42 bytes(converted into binary)
- long with length 4 bytes(converted into binary)
- float with length of 4 bytes(converted into binary)
Now i have defined a schema like as below
<schemaforparsing>
<field>
<name>fieldname1</name>
<type>string</type>
<length>42</length>
</field>
<field>
<name>fieldname2</name>
<type>long</type>
<length>4</length>
</field>
<field>
<name>fieldname3</name>
<type>float</type>
<length>4</length>
</field>
</schemaforparsing>
i want to parse this bytes array in to an user defined object. Userdefined object 's class should be generated from specified schema.like in this case class will be as below
classGenerated
{
String fieldname1[42];
long fieldname2;
float fiedlname3;
}
So basically i want a component which will take input of a schema and based upon that schema, after parsing binary data in array it will generate object of class related to transaction schema.
Does dot net 3.5 platform provides such a component?