Compiler Error CS1713

Unexpected error building metadata name for type Typename1—'Reason'

This error is often caused by an internal compiler error. Making some minor changes to your code, such as shortening the length of the name, and then recompiling, may resolve this error.