Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ResourceReferenceExpressionConverter.cs
- DefaultValidator.cs
- ObjectSecurity.cs
- NullableLongAverageAggregationOperator.cs
- HwndTarget.cs
- COM2ExtendedBrowsingHandler.cs
- CachedRequestParams.cs
- HttpVersion.cs
- InteropAutomationProvider.cs
- SiteMapNode.cs
- Funcletizer.cs
- ColumnCollection.cs
- PolicyManager.cs
- SessionStateModule.cs
- _SslStream.cs
- UserNameSecurityToken.cs
- FixedSOMSemanticBox.cs
- ProbeDuplexCD1AsyncResult.cs
- ComplusTypeValidator.cs
- TextParentUndoUnit.cs
- MetabaseServerConfig.cs
- BitmapEncoder.cs
- COM2AboutBoxPropertyDescriptor.cs
- BridgeDataReader.cs
- ColumnPropertiesGroup.cs
- KnownBoxes.cs
- ApplicationFileParser.cs
- DataServiceBuildProvider.cs
- TextServicesCompartmentContext.cs
- InheritanceContextChangedEventManager.cs
- Utils.cs
- Baml6Assembly.cs
- CodeTypeMember.cs
- KoreanLunisolarCalendar.cs
- ToolboxService.cs
- ThreadExceptionDialog.cs
- ProfileSettings.cs
- RichTextBox.cs
- ReadOnlyDataSourceView.cs
- StringAnimationBase.cs
- PageBuildProvider.cs
- HMACRIPEMD160.cs
- CompositeDispatchFormatter.cs
- querybuilder.cs
- RootBuilder.cs
- DataGridViewSortCompareEventArgs.cs
- LicenseException.cs
- XmlBoundElement.cs
- TableLayoutSettingsTypeConverter.cs
- HttpClientChannel.cs
- FocusWithinProperty.cs
- Form.cs
- VectorCollectionConverter.cs
- ListViewUpdateEventArgs.cs
- DataControlImageButton.cs
- TrackingMemoryStream.cs
- TemplateAction.cs
- XmlConvert.cs
- InteropAutomationProvider.cs
- PolicyValidationException.cs
- Pair.cs
- MessageDesigner.cs
- RequestResponse.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- NativeMethods.cs
- TypeValidationEventArgs.cs
- XmlTextReaderImplHelpers.cs
- Pair.cs
- HandlerMappingMemo.cs
- SmtpMail.cs
- ToolBarTray.cs
- Vertex.cs
- ErasingStroke.cs
- SapiInterop.cs
- LeaseManager.cs
- CounterSample.cs
- PolyBezierSegment.cs
- ConcurrentQueue.cs
- RegisteredHiddenField.cs
- URLIdentityPermission.cs
- UpdateProgress.cs
- UnsafeNativeMethods.cs
- PerformanceCounterPermissionAttribute.cs
- FileReservationCollection.cs
- ColumnPropertiesGroup.cs
- EdmSchemaAttribute.cs
- ping.cs
- ImageFormat.cs
- ConnectionManagementElement.cs
- Timer.cs
- BaseDataBoundControl.cs
- IdSpace.cs
- QueryNode.cs
- HtmlInputSubmit.cs
- FirstMatchCodeGroup.cs
- webeventbuffer.cs
- EntitySet.cs
- StyleCollection.cs
- HtmlInputControl.cs
- ColumnTypeConverter.cs