Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / XPath / Internal / OperandQuery.cs / 1305376 / 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
- ProgressBar.cs
- DiscoveryVersionConverter.cs
- StructureChangedEventArgs.cs
- LineInfo.cs
- CompoundFileReference.cs
- OSEnvironmentHelper.cs
- ColorConvertedBitmap.cs
- GorillaCodec.cs
- QueryServiceConfigHandle.cs
- TableItemProviderWrapper.cs
- EndpointAddressAugust2004.cs
- Mouse.cs
- ContentElementAutomationPeer.cs
- IInstanceTable.cs
- SafeReadContext.cs
- DataKeyCollection.cs
- ImageFormat.cs
- DataGridCommandEventArgs.cs
- AssemblyResourceLoader.cs
- DbParameterCollection.cs
- ToolboxItemSnapLineBehavior.cs
- BoundPropertyEntry.cs
- EventQueueState.cs
- SecurityHelper.cs
- MetadataItemSerializer.cs
- ServiceHostFactory.cs
- CacheAxisQuery.cs
- DataServiceKeyAttribute.cs
- ItemCheckEvent.cs
- GridViewCommandEventArgs.cs
- PingOptions.cs
- ProfileService.cs
- XmlValueConverter.cs
- ContentPosition.cs
- ObjectDataSourceStatusEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- DispatcherTimer.cs
- DescendantBaseQuery.cs
- WindowProviderWrapper.cs
- DragEventArgs.cs
- CollectionBuilder.cs
- EncodingDataItem.cs
- ViewGenerator.cs
- sortedlist.cs
- DirectoryNotFoundException.cs
- WebPartEditorCancelVerb.cs
- TimelineCollection.cs
- UserControl.cs
- ActivityMarkupSerializer.cs
- ComplexBindingPropertiesAttribute.cs
- DocumentApplication.cs
- Source.cs
- ManagedIStream.cs
- FileFormatException.cs
- ManipulationStartedEventArgs.cs
- DesignerObject.cs
- CaseInsensitiveOrdinalStringComparer.cs
- UriTemplateQueryValue.cs
- SerialErrors.cs
- ObjectParameterCollection.cs
- DoubleCollectionConverter.cs
- InheritablePropertyChangeInfo.cs
- WebPartMenu.cs
- XamlValidatingReader.cs
- BaseInfoTable.cs
- OneOfConst.cs
- FlowchartDesigner.xaml.cs
- RIPEMD160.cs
- Int16.cs
- BitmapEffectGroup.cs
- Roles.cs
- SmtpNegotiateAuthenticationModule.cs
- EdmItemCollection.OcAssemblyCache.cs
- CacheChildrenQuery.cs
- ColorBlend.cs
- LinkTarget.cs
- TypeDependencyAttribute.cs
- AbsoluteQuery.cs
- SqlDataAdapter.cs
- SchemaDeclBase.cs
- Constants.cs
- SystemIPGlobalStatistics.cs
- CompositeDesignerAccessibleObject.cs
- BitmapImage.cs
- ImageField.cs
- glyphs.cs
- ObjectStateFormatter.cs
- LockedAssemblyCache.cs
- BitmapPalette.cs
- FindProgressChangedEventArgs.cs
- SecurityManager.cs
- SafeRightsManagementSessionHandle.cs
- PlainXmlSerializer.cs
- NamespaceMapping.cs
- BitmapEffect.cs
- XPathQilFactory.cs
- IncrementalCompileAnalyzer.cs
- Misc.cs
- Ops.cs
- RepeaterItem.cs