Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / Axis.cs / 1 / Axis.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace MS.Internal.Xml.XPath { using System; using System.Xml; using System.Xml.XPath; using System.Diagnostics; using System.Globalization; internal class Axis : AstNode { private AxisType axisType; private AstNode input; private string prefix; private string name; private XPathNodeType nodeType; protected bool abbrAxis; public enum AxisType { Ancestor, AncestorOrSelf, Attribute, Child, Descendant, DescendantOrSelf, Following, FollowingSibling, Namespace, Parent, Preceding, PrecedingSibling, Self, None }; // constructor public Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype) { Debug.Assert(prefix != null); Debug.Assert(name != null); this.axisType = axisType; this.input = input; this.prefix = prefix; this.name = name; this.nodeType = nodetype; } // constructor public Axis(AxisType axisType, AstNode input) : this(axisType, input, string.Empty, string.Empty, XPathNodeType.All) { this.abbrAxis = true; } public override AstType Type { get {return AstType.Axis;} } public override XPathResultType ReturnType { get {return XPathResultType.NodeSet;} } public AstNode Input { get {return input;} set {input = value;} } public string Prefix { get { return prefix; } } public string Name { get { return name; } } public XPathNodeType NodeType { get { return nodeType; } } public AxisType TypeOfAxis { get { return axisType; } } public bool AbbrAxis { get { return abbrAxis; } } // Used by AstTree in Schema private string urn = string.Empty; public string Urn { get { return urn; } set { urn = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MobileCapabilities.cs
- CatalogPartChrome.cs
- DataObjectAttribute.cs
- SolidColorBrush.cs
- PackagePart.cs
- DateTimeOffsetStorage.cs
- RawAppCommandInputReport.cs
- MaskDescriptors.cs
- CodeIterationStatement.cs
- DbRetry.cs
- ReflectionTypeLoadException.cs
- SocketElement.cs
- CategoryState.cs
- mansign.cs
- TextElement.cs
- ObjectDataSourceSelectingEventArgs.cs
- LoginStatusDesigner.cs
- Model3D.cs
- RuleEngine.cs
- PagesSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RelativeSource.cs
- QilStrConcatenator.cs
- HttpModuleCollection.cs
- QueryOperatorEnumerator.cs
- __FastResourceComparer.cs
- SiteMapNodeItem.cs
- NativeMethods.cs
- HtmlInputCheckBox.cs
- HttpFileCollection.cs
- WpfPayload.cs
- XmlEnumAttribute.cs
- XmlTextReader.cs
- CodeBlockBuilder.cs
- NumberFormatInfo.cs
- ApplicationServiceHelper.cs
- LogLogRecordHeader.cs
- DiscreteKeyFrames.cs
- VectorConverter.cs
- ByeMessageCD1.cs
- SafeWaitHandle.cs
- DeclarativeCatalogPart.cs
- XamlToRtfWriter.cs
- DesignerLoader.cs
- WebPart.cs
- formatter.cs
- QuestionEventArgs.cs
- webeventbuffer.cs
- CompoundFileReference.cs
- XmlReader.cs
- FrameworkElement.cs
- WorkflowViewService.cs
- ClockGroup.cs
- PointUtil.cs
- CellParaClient.cs
- precedingquery.cs
- TypeBuilder.cs
- NativeBuffer.cs
- EdmFunction.cs
- CodeDomSerializerBase.cs
- ChtmlTextWriter.cs
- UIPermission.cs
- EditorZone.cs
- IISUnsafeMethods.cs
- PropertyValueChangedEvent.cs
- DataGridViewComboBoxEditingControl.cs
- SimpleHandlerBuildProvider.cs
- TdsRecordBufferSetter.cs
- SmiSettersStream.cs
- DataViewListener.cs
- HandlerFactoryWrapper.cs
- RuntimeHelpers.cs
- AsyncPostBackErrorEventArgs.cs
- ImageClickEventArgs.cs
- SearchForVirtualItemEventArgs.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- TextBox.cs
- ArcSegment.cs
- PropertyToken.cs
- HttpWebRequestElement.cs
- SubMenuStyle.cs
- DynamicMethod.cs
- ToolBarOverflowPanel.cs
- ConfigLoader.cs
- ValueUtilsSmi.cs
- ProviderSettings.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- _KerberosClient.cs
- DrawingBrush.cs
- MULTI_QI.cs
- ComboBoxAutomationPeer.cs
- EtwTrace.cs
- TaiwanCalendar.cs
- ConstructorNeedsTagAttribute.cs
- ProviderIncompatibleException.cs
- InternalControlCollection.cs
- StructuredTypeEmitter.cs
- ELinqQueryState.cs
- PropertiesTab.cs
- SrgsElementFactoryCompiler.cs