Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //[....] //----------------------------------------------------------------------------- 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
- EFColumnProvider.cs
- DecodeHelper.cs
- ImageFormat.cs
- SignerInfo.cs
- RuntimeConfigLKG.cs
- DispatcherExceptionEventArgs.cs
- MenuStrip.cs
- RequestCachePolicy.cs
- XmlBufferedByteStreamReader.cs
- WmlMobileTextWriter.cs
- MetadataAssemblyHelper.cs
- HttpTransportSecurityElement.cs
- InputProcessorProfiles.cs
- WFItemsToSpacerVisibility.cs
- DataTableNewRowEvent.cs
- ZipIOExtraField.cs
- COM2Enum.cs
- OpacityConverter.cs
- DataRecord.cs
- RecordConverter.cs
- DataServiceHost.cs
- RegexCharClass.cs
- HttpAsyncResult.cs
- JapaneseLunisolarCalendar.cs
- _OverlappedAsyncResult.cs
- HandleInitializationContext.cs
- CharacterString.cs
- RouteParameter.cs
- SqlMetaData.cs
- ApplicationServiceHelper.cs
- InvalidOleVariantTypeException.cs
- UriExt.cs
- DoubleAnimationClockResource.cs
- PeerEndPoint.cs
- CompressStream.cs
- XmlSchemaAppInfo.cs
- QueryOptionExpression.cs
- BinHexDecoder.cs
- ToolStripGripRenderEventArgs.cs
- TagMapCollection.cs
- CellCreator.cs
- XsdBuildProvider.cs
- ConnectionsZone.cs
- SchemaElement.cs
- ExpressionBuilder.cs
- ProfileServiceManager.cs
- BinHexEncoder.cs
- XmlDocumentSurrogate.cs
- FramingEncoders.cs
- MDIClient.cs
- LineServicesRun.cs
- InputLanguageProfileNotifySink.cs
- PartialCachingAttribute.cs
- SpellerInterop.cs
- __Error.cs
- BitmapEffect.cs
- PostBackOptions.cs
- ProfileProvider.cs
- XmlUtilWriter.cs
- DesignerHost.cs
- SoapSchemaMember.cs
- EventLogInformation.cs
- Win32.cs
- MLangCodePageEncoding.cs
- UpdateDelegates.Generated.cs
- ReadOnlyTernaryTree.cs
- GridView.cs
- RowBinding.cs
- DBCSCodePageEncoding.cs
- DesignerSerializerAttribute.cs
- WinInet.cs
- RotationValidation.cs
- TaiwanLunisolarCalendar.cs
- MethodBuilderInstantiation.cs
- PersistenceTypeAttribute.cs
- UrlMappingsSection.cs
- ProjectedSlot.cs
- UntypedNullExpression.cs
- RelationshipConverter.cs
- OdbcException.cs
- SizeKeyFrameCollection.cs
- FixedPageAutomationPeer.cs
- AppSettingsExpressionBuilder.cs
- UIElementParagraph.cs
- PassportAuthenticationModule.cs
- BamlLocalizableResource.cs
- RTLAwareMessageBox.cs
- XmlILAnnotation.cs
- TextDecorations.cs
- ObjectListCommand.cs
- path.cs
- TriggerAction.cs
- GenericIdentity.cs
- TextMarkerSource.cs
- FailedToStartupUIException.cs
- LayeredChannelListener.cs
- ServiceHttpModule.cs
- Enlistment.cs
- PeerChannelFactory.cs
- SoapConverter.cs