Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathSelfQuery.cs / 1 / XPathSelfQuery.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; internal sealed class XPathSelfQuery : BaseAxisQuery { public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private XPathSelfQuery(XPathSelfQuery other) : base(other) { } public override XPathNavigator Advance() { while ((currentNode = qyInput.Advance()) != null) { if (matches(currentNode)) { position = 1; return currentNode; } } return null; } public override XPathNodeIterator Clone() { return new XPathSelfQuery(this); } } } // 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; internal sealed class XPathSelfQuery : BaseAxisQuery { public XPathSelfQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private XPathSelfQuery(XPathSelfQuery other) : base(other) { } public override XPathNavigator Advance() { while ((currentNode = qyInput.Advance()) != null) { if (matches(currentNode)) { position = 1; return currentNode; } } return null; } public override XPathNodeIterator Clone() { return new XPathSelfQuery(this); } } } // 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
- PreProcessor.cs
- DuplexChannelBinder.cs
- MinMaxParagraphWidth.cs
- QilReference.cs
- ComplusEndpointConfigContainer.cs
- IPEndPointCollection.cs
- Matrix.cs
- KeyValuePair.cs
- PathFigureCollection.cs
- OptimalBreakSession.cs
- CfgArc.cs
- DbUpdateCommandTree.cs
- DocumentViewer.cs
- HttpEncoder.cs
- AddressHeader.cs
- WindowHelperService.cs
- TypedReference.cs
- ComponentResourceManager.cs
- base64Transforms.cs
- DecoderExceptionFallback.cs
- FontStretchConverter.cs
- SoapHeader.cs
- RectConverter.cs
- AppendHelper.cs
- LinearQuaternionKeyFrame.cs
- StateMachineWorkflowInstance.cs
- ServiceThrottle.cs
- XmlParserContext.cs
- CustomValidator.cs
- TagPrefixAttribute.cs
- RemotingAttributes.cs
- TransferRequestHandler.cs
- HttpDebugHandler.cs
- PasswordRecovery.cs
- sortedlist.cs
- MethodBuilderInstantiation.cs
- Dispatcher.cs
- SchemaTypeEmitter.cs
- OLEDB_Enum.cs
- Pointer.cs
- Border.cs
- ParameterSubsegment.cs
- ReferencedCategoriesDocument.cs
- Accessors.cs
- SendKeys.cs
- NullRuntimeConfig.cs
- FixedPosition.cs
- Misc.cs
- CrossSiteScriptingValidation.cs
- AssemblyHash.cs
- ObjectDataSourceSelectingEventArgs.cs
- AstNode.cs
- SpecularMaterial.cs
- Lease.cs
- Rijndael.cs
- XmlAttributeAttribute.cs
- Splitter.cs
- QilValidationVisitor.cs
- LineSegment.cs
- TextCollapsingProperties.cs
- LOSFormatter.cs
- TransactedReceiveScope.cs
- VScrollProperties.cs
- ListViewUpdatedEventArgs.cs
- HorizontalAlignConverter.cs
- HwndStylusInputProvider.cs
- SortableBindingList.cs
- OneOfElement.cs
- Utils.cs
- CompositeFontInfo.cs
- ListViewSortEventArgs.cs
- ResourcePart.cs
- ResourcePool.cs
- SecurityTokenRequirement.cs
- BuiltInExpr.cs
- IssuedTokenClientBehaviorsElement.cs
- SchemaCompiler.cs
- cookiecontainer.cs
- CollectionAdapters.cs
- DmlSqlGenerator.cs
- InvokePatternIdentifiers.cs
- EditorZone.cs
- MobileTemplatedControlDesigner.cs
- GraphicsPath.cs
- XmlCustomFormatter.cs
- PropertyDescriptorCollection.cs
- HttpWebRequestElement.cs
- SingleSelectRootGridEntry.cs
- DefaultCommandConverter.cs
- _SingleItemRequestCache.cs
- RegexRunner.cs
- MaterializeFromAtom.cs
- ClassDataContract.cs
- ListViewGroup.cs
- SmiEventSink_Default.cs
- WindowsListViewItem.cs
- XmlDocumentFragment.cs
- TextRangeEditTables.cs
- DataServiceHostWrapper.cs
- StatusBarPanelClickEvent.cs