public static void Main() { staticStruct.endType = new EndType (); RefType rt = new RefType (); rt.valueType.endType = new EndType (); rt.endType = new EndType (); rt.structArray = new StructType [2]; rt.structArray [0].endType = new EndType (); rt.structArray [1].endType = new EndType (); rt.endTypes = new EndType [2]; rt.endTypes [0] = new EndType (); rt.endTypes [1] = new EndType (); refType = rt; Aux (); Console.WriteLine ("Ready"); Console.ReadLine (); EndType rt2 = new EndType (); Console.WriteLine ("Ready 2"); Console.ReadLine (); }
public static void Main() { staticStruct.endType = new EndType(); RefType rt = new RefType(); rt.valueType.endType = new EndType(); rt.endType = new EndType(); rt.structArray = new StructType [2]; rt.structArray [0].endType = new EndType(); rt.structArray [1].endType = new EndType(); rt.endTypes = new EndType [2]; rt.endTypes [0] = new EndType(); rt.endTypes [1] = new EndType(); refType = rt; Aux(); Console.WriteLine("Ready"); Console.ReadLine(); EndType rt2 = new EndType(); Console.WriteLine("Ready 2"); Console.ReadLine(); }
static void Aux() { EndType tt = new EndType(); Console.WriteLine(tt); }
static void Aux() { EndType tt = new EndType (); Console.WriteLine (tt); }