System.Xml.Tests.TCFullEndElement.TCPI.pi_1 C# (CSharp) Méthode

pi_1() public méthode

public pi_1 ( ) : int
Résultat int
            public int pi_1()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteProcessingInstruction("test", "This text is a PI");
                    w.WriteEndElement();
                }
                return CompareReader("<Root><?test This text is a PI?></Root>") ? TEST_PASS : TEST_FAIL;
            }