public void UnCommentXElmenet_Test()
        {
            XComment commentedXElement = new XComment(TestConstants.TransactionXElem1);
            XElement xe = commentedXElement.UnCommentXElmenet();

            Assert.IsTrue(TestConstants.TransactionXElem1.IgnoreWhiteSpaceEquals(xe.ToString()));
        }
Exemplo n.º 2
0
        public static void UnCommentXElmenet(this XDocument xd, XComment xc)
        {
            XElement xe = xc.UnCommentXElmenet();

            if (xe != null)
            {
                xc.ReplaceWith(xe);
            }
        }
Exemplo n.º 3
0
 public static XElement UnCommentXElmenet(this XElement xe, XComment xc)
 {
     return(xc.UnCommentXElmenet());
 }