예제 #1
0
 public object Visit(SanityValueCellData n)
 {
     throw new NotImplementedException();
 }
예제 #2
0
        public object Visit(SanityValueCellData 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;
        }