BaseData.CheckForIndex C# (CSharp) Méthode

CheckForIndex() public méthode

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