Compiler Error CS0843
To assign a value to an automatically-implemented property from a constructor, you must first invoke the default constructor to create the object.
To correct this error
Add a call to the default constructor in a constructor initializer as shown in the following example. Note the use of : this(). For more information, see this (C# Reference).