public void UnCommentXElmenet_Test() { XComment commentedXElement = new XComment(TestConstants.TransactionXElem1); XElement xe = commentedXElement.UnCommentXElmenet(); Assert.IsTrue(TestConstants.TransactionXElem1.IgnoreWhiteSpaceEquals(xe.ToString())); }
public static void UnCommentXElmenet(this XDocument xd, XComment xc) { XElement xe = xc.UnCommentXElmenet(); if (xe != null) { xc.ReplaceWith(xe); } }
public static XElement UnCommentXElmenet(this XElement xe, XComment xc) { return(xc.UnCommentXElmenet()); }