Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / EmptyQuery.cs / 1 / EmptyQuery.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.Xml.Xsl; using System.Collections; internal sealed class EmptyQuery : Query { public override XPathNavigator Advance() { return null; } public override XPathNodeIterator Clone() { return this; } public override object Evaluate(XPathNodeIterator context) { return this; } public override int CurrentPosition { get { return 0; } } public override int Count { get { return 0; } } public override QueryProps Properties { get { return QueryProps.Merge | QueryProps.Cached | QueryProps.Position | QueryProps.Count; } } public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } } public override void Reset() { } public override XPathNavigator Current { get { return null; } } } } // 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.Xml.Xsl; using System.Collections; internal sealed class EmptyQuery : Query { public override XPathNavigator Advance() { return null; } public override XPathNodeIterator Clone() { return this; } public override object Evaluate(XPathNodeIterator context) { return this; } public override int CurrentPosition { get { return 0; } } public override int Count { get { return 0; } } public override QueryProps Properties { get { return QueryProps.Merge | QueryProps.Cached | QueryProps.Position | QueryProps.Count; } } public override XPathResultType StaticType { get { return XPathResultType.NodeSet; } } public override void Reset() { } public override XPathNavigator Current { get { return null; } } } } // 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
- XmlTypeAttribute.cs
- TableLayoutSettingsTypeConverter.cs
- EngineSiteSapi.cs
- OdbcConnectionPoolProviderInfo.cs
- CssClassPropertyAttribute.cs
- HttpsHostedTransportConfiguration.cs
- WinEventWrap.cs
- ResourceDictionary.cs
- ReaderWriterLock.cs
- Int16Storage.cs
- EntityDataSourceSelectedEventArgs.cs
- ActiveXHelper.cs
- SeverityFilter.cs
- InternalConfigHost.cs
- CodePageEncoding.cs
- DataRowChangeEvent.cs
- ReliabilityContractAttribute.cs
- Storyboard.cs
- RadioButtonAutomationPeer.cs
- RectAnimationBase.cs
- SingleAnimation.cs
- TypographyProperties.cs
- CfgArc.cs
- KoreanCalendar.cs
- FastEncoderWindow.cs
- BooleanExpr.cs
- NullRuntimeConfig.cs
- DataGridCellEditEndingEventArgs.cs
- InputBuffer.cs
- DbConnectionPoolGroupProviderInfo.cs
- RegistrySecurity.cs
- BufferAllocator.cs
- CompilationLock.cs
- ServiceHostFactory.cs
- ConnectionManagementElementCollection.cs
- EditorZoneBase.cs
- ActivityValidationServices.cs
- Propagator.Evaluator.cs
- RemoteWebConfigurationHostStream.cs
- RegionInfo.cs
- KeyPullup.cs
- TableColumn.cs
- FileLogRecordStream.cs
- CharConverter.cs
- ExpressionBuilder.cs
- Int16Storage.cs
- SetterBaseCollection.cs
- XmlSchemaProviderAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- LineServicesCallbacks.cs
- FrameworkElement.cs
- MexHttpBindingCollectionElement.cs
- CellParaClient.cs
- ComponentDispatcher.cs
- EventData.cs
- ApplicationDirectoryMembershipCondition.cs
- SequentialActivityDesigner.cs
- StringArrayConverter.cs
- Restrictions.cs
- UIAgentMonitor.cs
- LocalizableResourceBuilder.cs
- ModuleConfigurationInfo.cs
- OleDbInfoMessageEvent.cs
- BrowserDefinition.cs
- ResourceReader.cs
- CalendarDayButton.cs
- PageTheme.cs
- WorkflowIdleBehavior.cs
- TextDocumentView.cs
- MediaEntryAttribute.cs
- MethodExpr.cs
- SignatureHelper.cs
- SerializationEventsCache.cs
- Cursor.cs
- NavigateEvent.cs
- AdornerDecorator.cs
- Parameter.cs
- XmlQueryCardinality.cs
- ThemeDirectoryCompiler.cs
- SiteMapSection.cs
- ResourceType.cs
- FieldDescriptor.cs
- URLMembershipCondition.cs
- IdentityReference.cs
- BuildProviderUtils.cs
- TextServicesPropertyRanges.cs
- StateDesigner.LayoutSelectionGlyph.cs
- SafeViewOfFileHandle.cs
- PerfService.cs
- CustomAttributeSerializer.cs
- StyleReferenceConverter.cs
- DiscoveryClientDuplexChannel.cs
- diagnosticsswitches.cs
- XmlElementAttributes.cs
- SafeThreadHandle.cs
- DbDataRecord.cs
- LoginName.cs
- InvalidTimeZoneException.cs
- OrderedParallelQuery.cs
- MessageSmuggler.cs