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
- GradientBrush.cs
- MediaElement.cs
- SpecialTypeDataContract.cs
- OutputCacheProfile.cs
- HostedElements.cs
- ToggleProviderWrapper.cs
- Ray3DHitTestResult.cs
- DataGridViewIntLinkedList.cs
- GlobalizationSection.cs
- SharingService.cs
- XmlWhitespace.cs
- Pair.cs
- QueryOperator.cs
- XmlAttributeOverrides.cs
- ProfessionalColorTable.cs
- XmlAttributeAttribute.cs
- XmlChildEnumerator.cs
- Variant.cs
- AttributeEmitter.cs
- Thumb.cs
- MexHttpBindingCollectionElement.cs
- BrowserInteropHelper.cs
- MobileUserControl.cs
- DeviceSpecificDesigner.cs
- DoubleLinkListEnumerator.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RegexWorker.cs
- Line.cs
- ExceptionHelpers.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ButtonColumn.cs
- SaveFileDialog.cs
- PropertyGeneratedEventArgs.cs
- CodeMemberField.cs
- DesignerToolStripControlHost.cs
- AlignmentYValidation.cs
- SoapException.cs
- Page.cs
- InvalidTimeZoneException.cs
- IdentitySection.cs
- SizeAnimationUsingKeyFrames.cs
- shaper.cs
- HtmlEmptyTagControlBuilder.cs
- ReliabilityContractAttribute.cs
- ExternalFile.cs
- DataSourceGroupCollection.cs
- MailDefinition.cs
- TypeDescriptionProvider.cs
- XMLSchema.cs
- ZipFileInfoCollection.cs
- TextOutput.cs
- SendReply.cs
- ExeConfigurationFileMap.cs
- DelegateHelpers.cs
- DefaultObjectSerializer.cs
- EntityCodeGenerator.cs
- TraceUtils.cs
- AlphaSortedEnumConverter.cs
- SystemWebSectionGroup.cs
- ScalarType.cs
- ViewSimplifier.cs
- BuildProviderAppliesToAttribute.cs
- TextRangeEdit.cs
- EditorZoneBase.cs
- RegexStringValidator.cs
- RC2CryptoServiceProvider.cs
- OpCopier.cs
- ExceptionHelpers.cs
- XmlCompatibilityReader.cs
- Util.cs
- ThicknessKeyFrameCollection.cs
- ListItemConverter.cs
- versioninfo.cs
- SqlUserDefinedAggregateAttribute.cs
- CertificateElement.cs
- ListViewDataItem.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ActivityDesignerLayoutSerializers.cs
- TransformValueSerializer.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- LogEntryUtils.cs
- AuthorizationRule.cs
- URIFormatException.cs
- DispatcherEventArgs.cs
- WorkflowDurableInstance.cs
- TypeDelegator.cs
- TerminateDesigner.cs
- TitleStyle.cs
- PropertyPathWorker.cs
- QueryStringHandler.cs
- BinaryUtilClasses.cs
- Gdiplus.cs
- _ProxyChain.cs
- GeneralTransform3DTo2D.cs
- BitmapVisualManager.cs
- MultiDataTrigger.cs
- CallbackValidator.cs
- CFStream.cs
- SpotLight.cs
- GuidelineSet.cs