BaseData.CheckForIndex C# (CSharp) 메소드

CheckForIndex() 공개 메소드

public CheckForIndex ( int index, int check ) : int
index int
check int
리턴 int
    public int CheckForIndex(int index, int check)
    {
        if(check == index) check = 0;
        else if(check > index) check -= 1;
        return check;
    }