Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / GroupQuery.cs / 1305376 / GroupQuery.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 sealed class GroupQuery : BaseAxisQuery {
public GroupQuery(Query qy): base(qy) {}
private GroupQuery(GroupQuery other) : base(other) { }
public override XPathNavigator Advance() {
currentNode = qyInput.Advance();
if (currentNode != null) {
position++;
}
return currentNode;
}
public override object Evaluate(XPathNodeIterator nodeIterator) {
return qyInput.Evaluate(nodeIterator);
}
public override XPathNodeIterator Clone() { return new GroupQuery(this); }
public override XPathResultType StaticType { get { return qyInput.StaticType; } }
public override QueryProps Properties { get { return QueryProps.Position; } } // Doesn't have QueryProps.Merge
}
}
// 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 sealed class GroupQuery : BaseAxisQuery {
public GroupQuery(Query qy): base(qy) {}
private GroupQuery(GroupQuery other) : base(other) { }
public override XPathNavigator Advance() {
currentNode = qyInput.Advance();
if (currentNode != null) {
position++;
}
return currentNode;
}
public override object Evaluate(XPathNodeIterator nodeIterator) {
return qyInput.Evaluate(nodeIterator);
}
public override XPathNodeIterator Clone() { return new GroupQuery(this); }
public override XPathResultType StaticType { get { return qyInput.StaticType; } }
public override QueryProps Properties { get { return QueryProps.Position; } } // Doesn't have QueryProps.Merge
}
}
// 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
- DateTimeSerializationSection.cs
- BCryptSafeHandles.cs
- WorkflowServiceHostFactory.cs
- DrawingState.cs
- SpeechRecognizer.cs
- LocatorPartList.cs
- EncodingStreamWrapper.cs
- InputProcessorProfilesLoader.cs
- Crc32.cs
- Parallel.cs
- DataSvcMapFileSerializer.cs
- LineGeometry.cs
- ContextMenuStrip.cs
- QueryAccessibilityHelpEvent.cs
- TextTabProperties.cs
- WindowInteractionStateTracker.cs
- EventSinkHelperWriter.cs
- SslStream.cs
- PropertyGroupDescription.cs
- RotateTransform.cs
- BinaryParser.cs
- CompositeCollection.cs
- GridLength.cs
- RtfToXamlReader.cs
- DataServiceQueryException.cs
- ProfileEventArgs.cs
- FloatUtil.cs
- DropShadowBitmapEffect.cs
- CompositeCollectionView.cs
- OracleParameterCollection.cs
- ConfigurationValidatorAttribute.cs
- ConfigViewGenerator.cs
- Persist.cs
- _AcceptOverlappedAsyncResult.cs
- Path.cs
- CacheHelper.cs
- NavigationWindowAutomationPeer.cs
- ChameleonKey.cs
- DataServiceRequestException.cs
- GregorianCalendarHelper.cs
- SqlUtils.cs
- QilFunction.cs
- ReadWriteObjectLock.cs
- FreezableCollection.cs
- CookielessHelper.cs
- CodeTypeReferenceSerializer.cs
- ClipboardData.cs
- OracleConnectionString.cs
- MultiPropertyDescriptorGridEntry.cs
- CacheVirtualItemsEvent.cs
- APCustomTypeDescriptor.cs
- TagMapCollection.cs
- SiteIdentityPermission.cs
- ModelItemCollection.cs
- BrowserCapabilitiesCompiler.cs
- LocalBuilder.cs
- BatchStream.cs
- XPathScanner.cs
- CreateUserWizard.cs
- CacheSection.cs
- PolicyDesigner.cs
- BinaryUtilClasses.cs
- LogSwitch.cs
- XmlSchemaRedefine.cs
- AffineTransform3D.cs
- Sequence.cs
- DataTableCollection.cs
- ImageCodecInfo.cs
- MarkerProperties.cs
- AssemblyNameEqualityComparer.cs
- MsmqNonTransactedPoisonHandler.cs
- TraceContextEventArgs.cs
- PersistenceProviderBehavior.cs
- RelatedPropertyManager.cs
- ProfileInfo.cs
- SecurityAppliedMessage.cs
- ProtectedConfigurationSection.cs
- HitTestWithPointDrawingContextWalker.cs
- recordstatefactory.cs
- EntityTypeEmitter.cs
- Utils.cs
- QuaternionConverter.cs
- HandlerBase.cs
- WindowsSysHeader.cs
- Table.cs
- coordinatorfactory.cs
- RelOps.cs
- DrawingServices.cs
- SetIterators.cs
- WebPartUserCapability.cs
- SessionEndingEventArgs.cs
- CreateUserWizardStep.cs
- SecurityAlgorithmSuiteConverter.cs
- CodeTypeParameterCollection.cs
- DbMetaDataCollectionNames.cs
- UndoEngine.cs
- ADRoleFactory.cs
- ArcSegment.cs
- UIElement.cs
- SafeCryptoHandles.cs