예제 #1
0
        public static uint CMPOverrideObject()
        {
            SuperPoint point = new SuperPoint(100, 200);

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

            return(0);
        }
예제 #2
0
        public static uint CMPMethodNullReference()
        {
            SuperPoint point = null;

            try {
                point.GetSum();
                return(3);
            } catch (System.NullReferenceException) {
                return(1);
            } catch {
                return(2);
            }
        }