PostfixNotation.PostfixNotation.GetPriority C# (CSharp) Method

GetPriority() private method

private GetPriority ( string operation ) : int
operation string
return int
        private int GetPriority(string operation)
        {
            int i = 0;
            for (i = 0; i < operations.Length; i++)
            {
                if (operations[i] == operation)

                    break;

            }
            return i / 2;
        }