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 / ParentQuery.cs / 1 / ParentQuery.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; using System.Collections.Generic; internal sealed class ParentQuery : CacheAxisQuery { public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private ParentQuery(ParentQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); // XPathNavigator input; while ((input = qyInput.Advance()) != null) { input = input.Clone(); if (input.MoveToParent()) { if (matches(input)) { Insert(outputBuffer, input); } } } return this; } public override XPathNodeIterator Clone() { return new ParentQuery(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; using System.Globalization; using System.Collections.Generic; internal sealed class ParentQuery : CacheAxisQuery { public ParentQuery(Query qyInput, string Name, string Prefix, XPathNodeType Type) : base(qyInput, Name, Prefix, Type) {} private ParentQuery(ParentQuery other) : base(other) { } public override object Evaluate(XPathNodeIterator context) { base.Evaluate(context); // XPathNavigator input; while ((input = qyInput.Advance()) != null) { input = input.Clone(); if (input.MoveToParent()) { if (matches(input)) { Insert(outputBuffer, input); } } } return this; } public override XPathNodeIterator Clone() { return new ParentQuery(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
- ColumnBinding.cs
- PrimitiveType.cs
- CharAnimationUsingKeyFrames.cs
- ValidatedControlConverter.cs
- ProtocolsConfiguration.cs
- metadatamappinghashervisitor.cs
- ImageSourceTypeConverter.cs
- CSharpCodeProvider.cs
- HasCopySemanticsAttribute.cs
- SchemaImporter.cs
- StrokeFIndices.cs
- PagePropertiesChangingEventArgs.cs
- DiscardableAttribute.cs
- Activator.cs
- OleStrCAMarshaler.cs
- TextEditorContextMenu.cs
- SQLInt32Storage.cs
- XsltLibrary.cs
- SurrogateEncoder.cs
- CompilerGeneratedAttribute.cs
- SubMenuStyle.cs
- Panel.cs
- AssemblyResourceLoader.cs
- TimeSpanConverter.cs
- XmlUrlResolver.cs
- ToolstripProfessionalRenderer.cs
- LocalizabilityAttribute.cs
- DllNotFoundException.cs
- SystemDropShadowChrome.cs
- XslCompiledTransform.cs
- DataExpression.cs
- ConfigsHelper.cs
- SchemaTableOptionalColumn.cs
- DelayedRegex.cs
- XPathDocument.cs
- UTF8Encoding.cs
- SqlDeflator.cs
- FixUp.cs
- ExpressionPrefixAttribute.cs
- XpsTokenContext.cs
- IconConverter.cs
- ObjectStateFormatter.cs
- SqlUtils.cs
- CollectionCodeDomSerializer.cs
- InternalRelationshipCollection.cs
- Int32Converter.cs
- QuotedPairReader.cs
- StaticFileHandler.cs
- RegexCompiler.cs
- PlanCompiler.cs
- ResponseStream.cs
- SafeNativeMethodsMilCoreApi.cs
- HttpHandlerAction.cs
- WindowsListViewGroup.cs
- WrappedIUnknown.cs
- Visual.cs
- RegistryPermission.cs
- LinqDataView.cs
- NextPreviousPagerField.cs
- DuplicateMessageDetector.cs
- WebColorConverter.cs
- CommandBindingCollection.cs
- IBuiltInEvidence.cs
- UInt64Converter.cs
- SqlClientFactory.cs
- RoutedCommand.cs
- TreeNodeConverter.cs
- ResolveNameEventArgs.cs
- XmlSignificantWhitespace.cs
- XslCompiledTransform.cs
- XPathSelectionIterator.cs
- ResXBuildProvider.cs
- TreeNodeStyleCollection.cs
- TemplateContentLoader.cs
- SqlClientWrapperSmiStreamChars.cs
- ToolStripTextBox.cs
- ScriptManager.cs
- EditModeSwitchButton.cs
- Cursors.cs
- DataBoundControlActionList.cs
- PrintDialog.cs
- ChannelDispatcherBase.cs
- SoundPlayerAction.cs
- EntityReference.cs
- ControlDesigner.cs
- StateMachineDesignerPaint.cs
- StandardToolWindows.cs
- CachedFontFace.cs
- ForceCopyBuildProvider.cs
- VectorKeyFrameCollection.cs
- WebOperationContext.cs
- IntPtr.cs
- SymbolResolver.cs
- SafeRightsManagementPubHandle.cs
- CaseExpr.cs
- CalendarAutoFormatDialog.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ExecutedRoutedEventArgs.cs
- SymbolTable.cs
- StreamReader.cs