FourthTry.Frame.CheckSingleBall C# (CSharp) Method

CheckSingleBall() protected method

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