Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with C#

  • Parse an XML file

    The following code shows a simple method of parsing through an XML file/string. We can get the parent name, child name, attributes etc from the XML. The namespace System.Xml would be the only additional namespace that we would be using.

  • Proper casing of the strings

    Many a times we are required to show strings with proper casings. The TextInfo  property from System.Globalization provides culture-specific casing information for strings. This has the advantage that it is culture aware and thus can be used for any country specific culture. This is how you would use it.