Remembering type suffixes if your daily job is working with VB.NET or C#.NET is not easy. D can stand for Decimal in VB and for Double in C#. A C is not for Currency but for Char and M is not Million but Decimal in C#. Still with me? An overview of all these unintuitive type suffixes along with prefixes and plain text modifiers is provided here for convenience. In addition, an explanation of the secrets, lies and bugs these suffixes can introduce — read article
Overview of type suffixes in C# and VB.Net
Tip: Force UTF8 or other encoding for XmlWriter with StringBuilder
When you use an XmlWriter or XmlTextWriter and the output target is StringBuilder or StringWriter then it is not possible to set the encoding to anything else then UTF-16. This tip explains why this is designed this way by Microsoft and offers you a way around this all-too restrictive behavior of the XmlWriter, to allow — read article