Skip to content

Naming Conventions

RDunkley edited this page Jul 4, 2014 · 1 revision

Introduction

The difficulty with creating C# code from XML is the XML element and attribute names are much less strict than C# class and property naming conventions. Also we had to distinguish between local variables, class names, and properties while using the XML element or attribute tag name (for readability). One of the purposes of XML-To-Data-Class is to not only create auto-generated code, but create code that performs error handling and maintains a certain level of code and documentation standard. To keep a consistent coding standard a naming convention was created to maintain uniformity across class and property names.

Class and Property Names

Class and property names are generated using the Capital case version of the XML element and attribute tag names.

Clone this wiki locally