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 / OperandQuery.cs / 1 / 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.
//
// [....]
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COAUTHIDENTITY.cs
- DocumentViewerHelper.cs
- HwndSubclass.cs
- CopyNodeSetAction.cs
- ClientSponsor.cs
- FieldDescriptor.cs
- Timer.cs
- WebConfigurationFileMap.cs
- TextServicesDisplayAttribute.cs
- DataGridColumn.cs
- RegexFCD.cs
- HttpCookie.cs
- FlowDocument.cs
- SHA384.cs
- HtmlPageAdapter.cs
- XmlWrappingReader.cs
- BooleanConverter.cs
- Token.cs
- StackOverflowException.cs
- InkCanvasSelectionAdorner.cs
- WinEventWrap.cs
- StateManagedCollection.cs
- ScrollViewerAutomationPeer.cs
- TransformedBitmap.cs
- NonBatchDirectoryCompiler.cs
- DesignerListAdapter.cs
- GridViewItemAutomationPeer.cs
- ExpanderAutomationPeer.cs
- figurelength.cs
- Int64Converter.cs
- HtmlInputSubmit.cs
- InternalTypeHelper.cs
- SystemIPv4InterfaceProperties.cs
- AsyncPostBackTrigger.cs
- SessionStateModule.cs
- UpdatableWrapper.cs
- LineMetrics.cs
- LocalizedNameDescriptionPair.cs
- SHA512CryptoServiceProvider.cs
- QueryOperator.cs
- Exceptions.cs
- ClientRolePrincipal.cs
- FormView.cs
- AsyncSerializedWorker.cs
- NotifyIcon.cs
- DrawingVisualDrawingContext.cs
- PointAnimationClockResource.cs
- SelectionRangeConverter.cs
- Matrix3DValueSerializer.cs
- ListItemCollection.cs
- Line.cs
- NativeCompoundFileAPIs.cs
- TypeSystem.cs
- xmlglyphRunInfo.cs
- TemplateBindingExpression.cs
- ButtonFieldBase.cs
- WebReferencesBuildProvider.cs
- SizeAnimation.cs
- EntityCommandExecutionException.cs
- DesignerAttribute.cs
- BuildProvider.cs
- Math.cs
- ProtectedConfiguration.cs
- XPathNodePointer.cs
- EntityConnection.cs
- NullableFloatAverageAggregationOperator.cs
- WindowsIPAddress.cs
- DoubleIndependentAnimationStorage.cs
- TrackingDataItem.cs
- SspiWrapper.cs
- HttpListenerResponse.cs
- GeometryGroup.cs
- Typeface.cs
- ListViewItemSelectionChangedEvent.cs
- PeerTransportListenAddressConverter.cs
- SqlDataSourceWizardForm.cs
- SQLGuid.cs
- ToolConsole.cs
- SafeNativeMethods.cs
- DataPagerField.cs
- CqlIdentifiers.cs
- LateBoundBitmapDecoder.cs
- DelegatingTypeDescriptionProvider.cs
- TextServicesLoader.cs
- BitmapPalette.cs
- WinInet.cs
- JoinSymbol.cs
- DBSchemaTable.cs
- FlowLayoutPanel.cs
- VerticalAlignConverter.cs
- IndependentlyAnimatedPropertyMetadata.cs
- OracleInternalConnection.cs
- AutomationPeer.cs
- Method.cs
- Positioning.cs
- _CommandStream.cs
- RepeatButtonAutomationPeer.cs
- HttpSocketManager.cs
- Rotation3DAnimationBase.cs
- FormsAuthenticationModule.cs