I am learning C#. I saw something like the code below. My questions are: how do you know what to put inside the [ ]? Do you have to add them manually one by one or there is a tool (such as visual studio) to do that? It is not just limited to xml, of course. I searched online, it is attribute annotion. Is there any good reference to read?
[XmlRoot("Logs")]
public class LogConfig {
[XmlArray("Servers")]
[XmlArrayItem("Server")]
public Server[] servers{
set; get;
}
public LogConfig(){
}
}