Ejemplo n.º 1
0
        private static void validateRouteInfo(PythonTuple routeInfo)
        {
            if (routeInfo.Count != EXPECTED_TUPLE_LENGTH) {
                throw new RouteMappingException();
            }

            if (routeInfo.Contains(null)) {
                throw new RouteMappingException();
            }
        }
Ejemplo n.º 2
0
 private bool TupleContains(CallSite site, object other, PythonTuple value)
 {
     return(value.Contains(other));
 }