Show/Hide Toolbars

XSharp

Struct member 'struct2 field' of type 'struct1' causes a cycle in the struct layout

 

The definitions of two structs include recursive references. Change the struct definitions such that each does not define itself on the other. This limitation applies only to structs, since structs are value types. If using recursive references, declare your types as classes.

 

The following sample generates XS0523:

 

 

// XS0523.prg  
// compile with: /target:library