Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / XPathSelfQuery.cs / 1305376 / 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
- ConfigurationSectionGroupCollection.cs
- WasEndpointConfigContainer.cs
- ManagementQuery.cs
- ReflectionUtil.cs
- Light.cs
- SortAction.cs
- Operators.cs
- DragDropManager.cs
- ReflectionUtil.cs
- MetaModel.cs
- ContextStack.cs
- FormParameter.cs
- localization.cs
- WeakEventTable.cs
- FormsAuthenticationCredentials.cs
- ActivityBindForm.Designer.cs
- ContentIterators.cs
- TableHeaderCell.cs
- SafeNativeMethods.cs
- XamlToRtfParser.cs
- KeyboardDevice.cs
- BlurEffect.cs
- DelegateHelpers.cs
- RenderingBiasValidation.cs
- MetadataPropertyAttribute.cs
- ItemsPresenter.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- ParserExtension.cs
- X509ChainElement.cs
- AutoResetEvent.cs
- CodeAttributeArgument.cs
- WebServiceMethodData.cs
- DirectoryObjectSecurity.cs
- PropertyDescriptorComparer.cs
- TokenBasedSet.cs
- NavigationWindow.cs
- ContentElement.cs
- ListSourceHelper.cs
- FixUp.cs
- DataBoundControlDesigner.cs
- LinkButton.cs
- CheckBox.cs
- PropagatorResult.cs
- RemotingConfigParser.cs
- NameNode.cs
- Soap11ServerProtocol.cs
- CriticalExceptions.cs
- OpenTypeCommon.cs
- DynamicVirtualDiscoSearcher.cs
- UserPreferenceChangedEventArgs.cs
- SeekStoryboard.cs
- DialogDivider.cs
- IpcClientChannel.cs
- GPRECTF.cs
- HealthMonitoringSectionHelper.cs
- LassoSelectionBehavior.cs
- NameValueSectionHandler.cs
- PersonalizationStateInfo.cs
- designeractionbehavior.cs
- Helpers.cs
- TextShapeableCharacters.cs
- FieldAccessException.cs
- TimeSpanStorage.cs
- GenericPrincipal.cs
- DragCompletedEventArgs.cs
- AssemblyUtil.cs
- DomainUpDown.cs
- BindingContext.cs
- ReservationNotFoundException.cs
- ObfuscationAttribute.cs
- ObjectParameter.cs
- Size.cs
- PointValueSerializer.cs
- SQLBinary.cs
- WebPartDeleteVerb.cs
- TextEditorLists.cs
- TextServicesCompartmentContext.cs
- RouteParametersHelper.cs
- _CommandStream.cs
- XmlTextEncoder.cs
- CompilationSection.cs
- RegexWorker.cs
- XmlFormatReaderGenerator.cs
- DispatchChannelSink.cs
- ProxyHwnd.cs
- DataRelation.cs
- XmlILCommand.cs
- SHA384Cng.cs
- SerializableAttribute.cs
- StatusBar.cs
- OracleString.cs
- PrintPreviewDialog.cs
- ComplusTypeValidator.cs
- TransactionFilter.cs
- PeerName.cs
- EntitySetBaseCollection.cs
- AssociationTypeEmitter.cs
- __ConsoleStream.cs
- X509Certificate.cs
- PrintDocument.cs