Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Because you can define a property as being optional, you may want to validate the property in your template to determine whether or not the user has entered a value. For example, you might want to allow generating a class either with a namespace declaration or without, at the user's option. To do this, you would first define an appropriate optional property:

...