public String distanceSubQueryNotAllowed() {Iterator<SrndQuery> sqi = getSubQueriesIterator();while (sqi.hasNext()) {SrndQuery leq = sqi.next();if (leq instanceof DistanceSubQuery) {String m = ((DistanceSubQuery)leq).distanceSubQueryNotAllowed();if (m != null) {return m;}} else {return "subquery not allowed: " + leq.toString();}}return null;}
public virtual string DistanceSubQueryNotAllowed(){var sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){SrndQuery leq = sqi.Current;if (leq is IDistanceSubQuery){string m = ((IDistanceSubQuery)leq).DistanceSubQueryNotAllowed();if (m != null){return m;}}else{return "subquery not allowed: " + leq.ToString();}}return null;}