SMF - Just Installed!
using System;///<summary>///make sure structs have 'public' access on fields,///when translated into other languages///</summary>public struct S1{ public int i1; ///<summary> ///decide: map to string or char[] or StringBuilder? ///</summary> public char[] c2;}public class Globals{ ///<summary> ///ensure that both '' chars and "" strings can be used to initialize the c2 field ///</summary> public static S1[] s1_arr = new S1[]{ new S1 {i1 = 11, c2 = { 'a', ( ( char ) 13) } }, new S1 {i1 = 21, c2 = "21"}, }; ///<summary> ///Rule R189: 'main' changed into 'Main' ///</summary> public static int Main() { int maxi = 40 / 20; int retval = 0; for(//translate into 'foreach' loop int i = 0; i < maxi;(i)++) { S1 obj = s1_arr[i ]; retval += obj.i1; //retval += obj.c2[0]; } return retval; }}