예제 #1
0
        protected void AddQueryTokenHandler(QueryTokenHandler handler, bool sort = true)
        {
            m_TokenConsumers.Add(handler);

            if (sort)
            {
                SortQueryTokenHandlers();
            }
        }
예제 #2
0
 static int QueryTokenHandlerComparer(QueryTokenHandler x, QueryTokenHandler y)
 {
     return(x.priority.CompareTo(y.priority));
 }