コード例 #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
ファイル: XMLStudentsRepository.cs プロジェクト: naturalna/JS
 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;
 }