April 2017
Intermediate to advanced
628 pages
13h 46m
English
public class Student { public string StudentName; public double SubjectMark; }
We can see that the XmlRoot attribute specifies that ElementName be called FundamentalsOfProgramming. This attribute thus defines the root of your generated XML. The XmlElement specifies an element called LecturerFullName instead of Lecturer. XmlIgnore attribute will cause XmlSerializer to ignore this field during serialization, while XmlAttribute will create an attribute on the root element of the generated XML. Lastly, ...
Read now
Unlock full access