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
- CodeMemberProperty.cs
- TextWriter.cs
- Parameter.cs
- MetadataArtifactLoader.cs
- SendSecurityHeaderElementContainer.cs
- complextypematerializer.cs
- FontStyles.cs
- DocumentPageViewAutomationPeer.cs
- storepermissionattribute.cs
- Font.cs
- TimelineClockCollection.cs
- AuthenticateEventArgs.cs
- CompoundFileStorageReference.cs
- FixUp.cs
- InputBuffer.cs
- SizeAnimationUsingKeyFrames.cs
- RotateTransform.cs
- DebugTraceHelper.cs
- TextSelection.cs
- Track.cs
- OpCopier.cs
- HttpListenerContext.cs
- _KerberosClient.cs
- TextFindEngine.cs
- NoClickablePointException.cs
- ReflectTypeDescriptionProvider.cs
- BlockCollection.cs
- MediaPlayerState.cs
- DocumentXmlWriter.cs
- ClusterRegistryConfigurationProvider.cs
- XmlSerializerVersionAttribute.cs
- Set.cs
- SqlBuilder.cs
- FlowchartDesigner.Helpers.cs
- SoundPlayerAction.cs
- KeyManager.cs
- AuthenticationConfig.cs
- SequentialOutput.cs
- PointKeyFrameCollection.cs
- BufferedGraphics.cs
- PenThreadWorker.cs
- HttpRuntime.cs
- DbSourceParameterCollection.cs
- HttpConfigurationSystem.cs
- ReferenceService.cs
- TypedReference.cs
- AccessText.cs
- XmlSerializerAssemblyAttribute.cs
- storepermissionattribute.cs
- ToolboxItemFilterAttribute.cs
- NonBatchDirectoryCompiler.cs
- TextTrailingWordEllipsis.cs
- ReadOnlyAttribute.cs
- Span.cs
- ChannelDispatcherCollection.cs
- Knowncolors.cs
- PagedDataSource.cs
- Rectangle.cs
- CounterCreationDataCollection.cs
- TypeDescriptor.cs
- SuppressMergeCheckAttribute.cs
- Registry.cs
- ObjectItemCollection.cs
- AppDomainUnloadedException.cs
- XmlTextReaderImplHelpers.cs
- Stack.cs
- EnumerableCollectionView.cs
- Margins.cs
- TextTabProperties.cs
- DummyDataSource.cs
- SecurityChannel.cs
- Fault.cs
- EntryPointNotFoundException.cs
- StringValueConverter.cs
- TransformerConfigurationWizardBase.cs
- SplashScreenNativeMethods.cs
- GeometryDrawing.cs
- DeflateStream.cs
- HttpRequestBase.cs
- TextTreeRootTextBlock.cs
- DataServiceStreamResponse.cs
- errorpatternmatcher.cs
- _Semaphore.cs
- PointConverter.cs
- UriParserTemplates.cs
- FloatAverageAggregationOperator.cs
- ServiceBuildProvider.cs
- RotateTransform3D.cs
- glyphs.cs
- IndexOutOfRangeException.cs
- CreateUserErrorEventArgs.cs
- UnsafeNativeMethods.cs
- UpdatePanelTriggerCollection.cs
- ServiceManager.cs
- XPathMultyIterator.cs
- ApplicationBuildProvider.cs
- OrthographicCamera.cs
- ToolStripItemClickedEventArgs.cs
- securitycriticaldata.cs
- WorkflowInstanceExtensionManager.cs