public object Visit(SanityCheckingCellData n) { throw new NotImplementedException(); }
public object Visit(SanityCheckingCellData n) { if (this.root == null) return false; var locationElement = root.Element(XName.Get("Location")); n.Location = (locationElement != null) ? locationElement.Value : String.Empty; var contentElement = root.Element(XName.Get("Content")); n.Content = (contentElement != null) ? contentElement.Value : String.Empty; var cellTypeElement = root.Element(XName.Get("CellType")); if (cellTypeElement != null) { n.CellType = (TestInputType)Enum.Parse(typeof(TestInputType), cellTypeElement.Value.ToUpper()); } return true; }