Show/Hide Toolbars

XSharp

Cannot modify the result of an unboxing conversion

 

The result of an unboxing conversion is a temporary variable. The compiler prevents you from modifying such variables because any modification would go away when the temporary variable goes away. To fix this, declare a new value-type variable to store the intermediate expression, and assign the result of the unboxing conversion to that variable.

 

The following code generates XS0455.

 

 

// XS0445.prg