Пример #1
0
 private Mark ParseMark(XElement markElement)
 {
     var subject = markElement.Attribute("subject").Value;
     var score = double.Parse(markElement.Attribute("score").Value, System.Globalization.CultureInfo.InvariantCulture);
     var mark = new Mark()
     {
         Subject = subject,
         Score = score
     };
     return mark;
 }
Пример #2
0
 private Mark ParseMark(XElement markElement)
 {
     var subject = markElement.Attribute("subject").Value;
     var score = double.Parse(markElement.Attribute("score").Value);
     var mark = new Mark()
     {
         Subject = subject,
         Score = score
     };
     return mark;
 }