Example #1
0
        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);
 }
Example #3
0
 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;
 }