Introduction

The token field enables you to write a property accessor body without declaring an explicit backing field. The token field is replaced with a compiler-synthesized backing field.

For example, previously, if you wanted to ensure that a string property couldn't be set to null, you had to declare a backing field and implement both accessors:

private string _msg;

public string Message