FourthTry.Frame.CheckSingleBall C# (CSharp) 메소드

CheckSingleBall() 보호된 메소드

protected CheckSingleBall ( int ball, string name ) : void
ball int
name string
리턴 void
        protected void CheckSingleBall(int ball, string name)
        {
            if (ball > 10)
            {
                throw new ArgumentOutOfRangeException(name, "ball upper limit is 10");
            }
        }