Codify

A Powerful .NET
Code Generator

Simple Property Builder

This template generates simple class properties. Properties are implemented by providing simple get and set access to a private field. Properties can be of any type. Properties can optionally have a documentation comment.

An initial value can be specified for any property. The access modifier of each property defaults to public but can be changed to any valid access modifier: Public, Private, etc. Properties are created as instance properties by default but can also be created as static (Shared in VB.NET). Read-only, read-write and write-only properties can be created.

Template Notes
This template is not applicable to properties that require custom get and set logic. This template should only be used for properties that provide wrappers on top of private fields. The generated code is designed to be used within an existing class. It does not create a new class of its own.

Version History
1.0.0 - Initial release.