System.Xml.Tests.TCFullEndElement.TCWriteValue.TCWriteBinHex.BinHex_1 C# (CSharp) Method

BinHex_1() public method

public BinHex_1 ( ) : int
return int
                public int BinHex_1()
                {
                    using (XmlWriter w = CreateWriter())
                    {
                        w.WriteStartElement("root");

                        string str = "abcdefghijk1234567890";
                        byte[] buffer = StringToByteArray(str);
                        w.WriteBinHex(buffer, 0, str.Length * 2);
                        w.WriteEndElement();
                    }
                    return TEST_PASS;
                }