Convert Object to XML using LINQ. Also the object contains other object list. Following is the Classes used in our program: public class Order { public string OrderId { get; set; } public string OrderNumber { get; set; } public string OrderDate { get…