نقل قول نوشته شده توسط Mahmoud.Afrad مشاهده تاپیک
با معرفی نوع داده , isnullable هم کار کرد

[XmlElement(
Type = typeof(List<string>) ,
IsNullable = true)
]
سلام و تشکر بابت پیگیری شما
کلاس را طبق راهنمایی شما تغییر دادم ولی همچنان فیلد Courses شی DeserializedCourses که از فایل ex.xml استخراج شده مقدارش null نمیشه . در صورتی که فیلد Courses شی SerializedCourses که فایل ex.xml از سریال کردن اون ایجاد شده مقدارش null

namespace TreeProject
{
[XmlRoot(ElementName = "CourseList")]
public class CourseList
{
[XmlElement(Type =typeof(List<string>),IsNullable =true)]
public List<string> Courses { get; set; }
}
}