public MyParamStruct ReturnStruct(int i) { MyParamStruct ret = new MyParamStruct(); ret.x = ret.y = ret.z = i; ret.str = String.Format("i contains {0:d}", i); return(ret); }
public double StructMethod(MyParamStruct s) { return s.x + s.y + s.z + int.Parse(s.str); }
public double StructMethod(MyParamStruct s) { return(s.x + s.y + s.z + int.Parse(s.str)); }
public MyParamStruct ReturnStruct(int i) { MyParamStruct ret = new MyParamStruct(); ret.x = ret.y = ret.z = i; ret.str = String.Format("i contains {0:d}", i); return ret; }