User Tools

Site Tools


net_development

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
net_development [2017/02/04 02:20] shawnnet_development [2017/08/01 22:24] (current) – [Formatting] String to XML code shawn
Line 29: Line 29:
   * [[https://msdn.microsoft.com/en-us/library/26etazsy.aspx|Formatting Types in the .NET Framework]]   * [[https://msdn.microsoft.com/en-us/library/26etazsy.aspx|Formatting Types in the .NET Framework]]
   * [[http://stackoverflow.com/q/5017782/1058872|C# DateTime - RFC 3339 format]]   * [[http://stackoverflow.com/q/5017782/1058872|C# DateTime - RFC 3339 format]]
 +
 +==== String -> XML ====
 +
 +<code lang="c#">
 +using (var sb = new StringReader(tokenString))
 +using (var reader = new XmlTextReader(sb))
 +{
 +    reader.Read();
 +}
 +</code>
  
 ==== Tools ==== ==== Tools ====
net_development.txt · Last modified: 2017/08/01 22:24 by shawn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki