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 revision Previous revision
net_development [2017/02/03 18:20]
shawn
net_development [2017/08/01 15:24] (current)
shawn [Formatting] String to XML code
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 15:24 by shawn