Please help. Is it possible to form a structure from a file and fill in the fields ( Marshal.PrtToStructure )?
Xml file, we have lines
<ID>b7131367-82e3</ID> <Layer>Channel</Layer> <MinFrameLength>20</MinFrameLength> <...>???</...> <MaxFrameLength>65535</MaxFrameLength> How to write <ID> , <Layer> , <MinFrameLength> , <...>``<MaxFrameLength> and assign values to b7131367-82e3 , Channel , 20 , ??? , 65535 respectively.?
Input data: xml format file (number of lines, order, name may be different, that is, we do not know).
Task 1. To form a structure from a file where the line is a field of the structure.
Task 2. Fill the structure.