Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //[....] //----------------------------------------------------------------------------- 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
- CodeCompiler.cs
- RubberbandSelector.cs
- TagMapInfo.cs
- MarshalByValueComponent.cs
- TouchDevice.cs
- Panel.cs
- DataRowChangeEvent.cs
- MetadataArtifactLoaderFile.cs
- InputScope.cs
- MultiView.cs
- BasicExpandProvider.cs
- BookmarkTable.cs
- WebPartDisplayModeCancelEventArgs.cs
- SQLResource.cs
- UrlMapping.cs
- ResourcesBuildProvider.cs
- UrlMappingCollection.cs
- Lock.cs
- CaseStatement.cs
- ObjectItemCollection.cs
- Tablet.cs
- Int32EqualityComparer.cs
- BitmapInitialize.cs
- PathSegment.cs
- DocumentViewerConstants.cs
- XhtmlTextWriter.cs
- TypeSystem.cs
- DBSchemaTable.cs
- XmlChildNodes.cs
- FixedPageStructure.cs
- OdbcConnectionOpen.cs
- DataErrorValidationRule.cs
- ParameterBinding.cs
- DocumentOrderComparer.cs
- addressfiltermode.cs
- MarkupWriter.cs
- WsiProfilesElementCollection.cs
- CharEntityEncoderFallback.cs
- NavigationHelper.cs
- ConfigurationValidatorBase.cs
- WinOEToolBoxItem.cs
- securitycriticaldataformultiplegetandset.cs
- SafeRightsManagementSessionHandle.cs
- NotificationContext.cs
- TypeGeneratedEventArgs.cs
- TypefaceCollection.cs
- ManualWorkflowSchedulerService.cs
- DockPatternIdentifiers.cs
- TemplateContainer.cs
- LiteralControl.cs
- CompilerParameters.cs
- XPathParser.cs
- ImageInfo.cs
- CodeCommentStatementCollection.cs
- DiscreteKeyFrames.cs
- DocumentApplication.cs
- StrokeIntersection.cs
- CorePropertiesFilter.cs
- ExpressionHelper.cs
- DataGridTableStyleMappingNameEditor.cs
- EmbossBitmapEffect.cs
- SrgsRuleRef.cs
- XamlInt32CollectionSerializer.cs
- SynchronizationLockException.cs
- HMACSHA512.cs
- DecodeHelper.cs
- CatalogPartChrome.cs
- SqlCacheDependencyDatabase.cs
- Queue.cs
- GenericsInstances.cs
- GridViewCancelEditEventArgs.cs
- CodeGenerator.cs
- DataPagerFieldCommandEventArgs.cs
- BasicHttpBindingElement.cs
- ServiceHostingEnvironment.cs
- SafeNativeMethods.cs
- AssemblyAttributes.cs
- EventBuilder.cs
- MetadataImporterQuotas.cs
- Timer.cs
- AsyncPostBackErrorEventArgs.cs
- GradientBrush.cs
- NotFiniteNumberException.cs
- SchemaCreator.cs
- X509SecurityTokenAuthenticator.cs
- TCPListener.cs
- CalendarData.cs
- XmlSecureResolver.cs
- PeerNameRegistration.cs
- SafeRightsManagementHandle.cs
- TransformPatternIdentifiers.cs
- sqlstateclientmanager.cs
- CollectionsUtil.cs
- StringHelper.cs
- TrustManager.cs
- XmlAtomicValue.cs
- XmlStreamStore.cs
- SolidBrush.cs
- SqlEnums.cs
- BitArray.cs