Beispiel #1
0
 // FIXME: add more parameters to distinguish them
 private XPathAxis(XPathAxisType axisType)
 {
     this.axisType = axisType;
     switch (axisType)
     {
     case XPathAxisType.Parent:
     case XPathAxisType.Ancestor:
     case XPathAxisType.AncestorOrSelf:
     case XPathAxisType.Preceding:
     case XPathAxisType.PrecedingSibling:
         this.reverse = true;
         break;
     }
 }
Beispiel #2
0
		// FIXME: add more parameters to distinguish them
		private XPathAxis (XPathAxisType axisType)
		{
			this.axisType = axisType;
			switch (axisType) {
			case XPathAxisType.Parent:
			case XPathAxisType.Ancestor:
			case XPathAxisType.AncestorOrSelf:
			case XPathAxisType.Preceding:
			case XPathAxisType.PrecedingSibling:
				this.reverse = true;
				break;
			}
		}