Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / Axis.cs / 1305376 / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComplexTypeEmitter.cs
- ExpressionTextBox.xaml.cs
- AppSettingsSection.cs
- CellParagraph.cs
- ScriptingWebServicesSectionGroup.cs
- RuntimeEnvironment.cs
- Hex.cs
- CompleteWizardStep.cs
- SoapServerMethod.cs
- GridItemPatternIdentifiers.cs
- SafeRightsManagementQueryHandle.cs
- AutomationProperties.cs
- CompilerGlobalScopeAttribute.cs
- PaperSource.cs
- StandardBindingReliableSessionElement.cs
- DoubleLinkList.cs
- DirectoryInfo.cs
- UnsafeNativeMethods.cs
- IRCollection.cs
- ContextStack.cs
- Exception.cs
- ObjectQueryExecutionPlan.cs
- BaseDataListDesigner.cs
- AsymmetricKeyExchangeDeformatter.cs
- StrokeCollectionDefaultValueFactory.cs
- FrameworkRichTextComposition.cs
- RightsManagementPermission.cs
- TypedServiceChannelBuilder.cs
- DataServiceException.cs
- FlowLayout.cs
- Site.cs
- HttpCachePolicyWrapper.cs
- RefExpr.cs
- DataControlFieldHeaderCell.cs
- GregorianCalendarHelper.cs
- ParallelLoopState.cs
- coordinatorscratchpad.cs
- Zone.cs
- HyperlinkAutomationPeer.cs
- JsonObjectDataContract.cs
- CodeDomSerializer.cs
- DeclarativeConditionsCollection.cs
- AdornedElementPlaceholder.cs
- AppDomainCompilerProxy.cs
- UriTemplateClientFormatter.cs
- TokenBasedSet.cs
- PageThemeBuildProvider.cs
- ExpressionConverter.cs
- ElementHostAutomationPeer.cs
- MessageDecoder.cs
- BindValidator.cs
- MbpInfo.cs
- ConstraintConverter.cs
- ColorTypeConverter.cs
- ColumnWidthChangedEvent.cs
- WebHttpBinding.cs
- RelatedPropertyManager.cs
- MetadataCollection.cs
- NavigationHelper.cs
- InternalSafeNativeMethods.cs
- XmlBaseWriter.cs
- HyperLinkStyle.cs
- QilIterator.cs
- PartialTrustVisibleAssemblyCollection.cs
- PasswordBox.cs
- MenuItemBindingCollection.cs
- SynchronizedChannelCollection.cs
- AssemblyAttributes.cs
- FunctionNode.cs
- dbenumerator.cs
- DbTransaction.cs
- CodePageUtils.cs
- StandardMenuStripVerb.cs
- WindowsListViewItemStartMenu.cs
- DirectionalLight.cs
- DataSourceHelper.cs
- EntityRecordInfo.cs
- RTLAwareMessageBox.cs
- RemotingConfiguration.cs
- DesignBindingConverter.cs
- EmissiveMaterial.cs
- JsonDeserializer.cs
- SiteMapProvider.cs
- VirtualPathUtility.cs
- SimpleMailWebEventProvider.cs
- ConnectionStringSettings.cs
- RangeBaseAutomationPeer.cs
- MessageBox.cs
- XmlSchemaElement.cs
- ArrayList.cs
- ListQueryResults.cs
- ButtonBaseAutomationPeer.cs
- TimeSpanStorage.cs
- smtpconnection.cs
- altserialization.cs
- DirectionalLight.cs
- ThicknessAnimation.cs
- Margins.cs
- SmiRecordBuffer.cs
- KeyValueSerializer.cs