Created
November 23, 2014 04:45
-
-
Save Suchiman/1b17967908160487c3ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class XMPPXmlWriter : XmlTextWriter | |
| { | |
| Action<bool> WriteEndStartTag; | |
| public XMPPXmlWriter(Stream w, Encoding encoding) | |
| : base(w, encoding) | |
| { | |
| Type baseClass = typeof(XmlTextWriter); | |
| MethodInfo WEST = baseClass.GetMethod("WriteEndStartTag", BindingFlags.Instance | BindingFlags.NonPublic); | |
| WriteEndStartTag = (Action<bool>)WEST.CreateDelegate(typeof(Action<bool>), this); | |
| } | |
| public void WriteStartTagEnde() | |
| { | |
| WriteEndStartTag(false); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment