Show/Hide Toolbars

XSharp

Backing field for automatically implemented property 'name' must be fully assigned before control is returned to the caller. Consider calling the default constructor from a constructor initializer.

 

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

 

1.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.

Example

 

The following code generates XS0843:

 

 

// XS0843.prg