Beispiel #1
0
        public static int CMPNoChanges()
        {
            Point point = new Point(100, 200);

            NoChanges(point);

            return(point.GetSum() == 300 ? 1 : 0);
        }
Beispiel #2
0
        public static uint CMPCreateObject()
        {
            Point point = new Point(100, 200);

            if (point.GetSum() == 300)
            {
                return(1);
            }

            return(0);
        }
Beispiel #3
0
		private static int StructParameter (int result, Point point)
		{
			return point.GetSum () == result ? 1 : 0;
		}
Beispiel #4
0
		private unsafe static int StructPointer2Helper (Point point)
		{
			return point.GetSum ();
		}
Beispiel #5
0
		public static int CMPNoChanges ()
		{
			Point point = new Point (100, 200);

			NoChanges (point);

			return point.GetSum () == 300 ? 1 : 0;
		}
Beispiel #6
0
 private unsafe static int StructPointer2Helper(Point point)
 {
     return(point.GetSum());
 }
Beispiel #7
0
        private static int Copy(Point point)
        {
            Point local = point;

            return(local.GetSum());
        }
Beispiel #8
0
 private static int StructParameter(int result, Point point)
 {
     return(point.GetSum() == result ? 1 : 0);
 }