Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / OperandQuery.cs / 2 / OperandQuery.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;
internal sealed class OperandQuery : ValueQuery {
internal object val;
public OperandQuery(object val) {
this.val = val;
}
public override object Evaluate(XPathNodeIterator nodeIterator) {
return val;
}
public override XPathResultType StaticType { get { return GetXPathType(val); } }
public override XPathNodeIterator Clone() { return this; }
public override void PrintQuery(XmlWriter w) {
w.WriteStartElement(this.GetType().Name);
w.WriteAttributeString("value", Convert.ToString(val, CultureInfo.InvariantCulture));
w.WriteEndElement();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AmbiguousMatchException.cs
- BindStream.cs
- InvokeProviderWrapper.cs
- TogglePattern.cs
- XmlLinkedNode.cs
- SystemIPGlobalProperties.cs
- GenericParameterDataContract.cs
- WebPartsSection.cs
- ProxyManager.cs
- SqlConnectionPoolProviderInfo.cs
- SequenceFullException.cs
- StringConcat.cs
- TraceHandler.cs
- DetailsViewCommandEventArgs.cs
- VerticalAlignConverter.cs
- Composition.cs
- StatusBarPanelClickEvent.cs
- KeyFrames.cs
- DataServiceProcessingPipeline.cs
- PrintDialog.cs
- Int16.cs
- DataGridViewCellFormattingEventArgs.cs
- Crc32.cs
- RunWorkerCompletedEventArgs.cs
- DataControlFieldHeaderCell.cs
- SqlCacheDependency.cs
- FocusManager.cs
- PickDesigner.xaml.cs
- cryptoapiTransform.cs
- Automation.cs
- SqlDataSourceFilteringEventArgs.cs
- MetadataPropertyCollection.cs
- ImageCodecInfoPrivate.cs
- InternalResources.cs
- NativeMethods.cs
- ConfigsHelper.cs
- UnsafeNativeMethods.cs
- ToolboxComponentsCreatingEventArgs.cs
- FontStyles.cs
- FastEncoder.cs
- PrimitiveRenderer.cs
- IntMinMaxAggregationOperator.cs
- FixedPosition.cs
- ValidatingCollection.cs
- AssemblyInfo.cs
- Size3D.cs
- SaveFileDialog.cs
- FontCollection.cs
- EDesignUtil.cs
- ApplicationProxyInternal.cs
- AppDomainProtocolHandler.cs
- OptimalBreakSession.cs
- HwndAppCommandInputProvider.cs
- BitmapCodecInfoInternal.cs
- RC2CryptoServiceProvider.cs
- DataGridViewCellStateChangedEventArgs.cs
- TdsParserStaticMethods.cs
- AliasedSlot.cs
- DBAsyncResult.cs
- _FixedSizeReader.cs
- DBSchemaTable.cs
- AuthenticationConfig.cs
- Wildcard.cs
- ConfigurationManagerInternal.cs
- LineSegment.cs
- OleDbParameter.cs
- SQLInt64.cs
- HtmlControl.cs
- xmlsaver.cs
- BufferedOutputStream.cs
- ItemTypeToolStripMenuItem.cs
- ComponentCommands.cs
- WorkflowApplicationTerminatedException.cs
- HtmlElementEventArgs.cs
- PageStatePersister.cs
- AnnotationComponentManager.cs
- Interfaces.cs
- EventSourceCreationData.cs
- GraphicsState.cs
- XmlSchemaInfo.cs
- ThaiBuddhistCalendar.cs
- LicenseManager.cs
- RegexMatchCollection.cs
- OutOfMemoryException.cs
- ListViewSelectEventArgs.cs
- EntityParameterCollection.cs
- SoapSchemaMember.cs
- MaterialCollection.cs
- Compilation.cs
- RectangleGeometry.cs
- FieldBuilder.cs
- XmlSchemaDatatype.cs
- DirtyTextRange.cs
- Calendar.cs
- ExpandCollapseProviderWrapper.cs
- BaseParagraph.cs
- FieldValue.cs
- EditorZoneAutoFormat.cs
- XmlWellformedWriter.cs
- DataGridViewAddColumnDialog.cs