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
- ProjectionQueryOptionExpression.cs
- Msec.cs
- TextTreeFixupNode.cs
- Pkcs9Attribute.cs
- RoleService.cs
- CapabilitiesRule.cs
- ValidationSummaryDesigner.cs
- ProgressiveCrcCalculatingStream.cs
- RequestSecurityTokenResponse.cs
- IntAverageAggregationOperator.cs
- GeometryConverter.cs
- figurelengthconverter.cs
- ToolStripPanelRenderEventArgs.cs
- ConfigurationManagerHelper.cs
- ExtractorMetadata.cs
- SqlStream.cs
- ListenerUnsafeNativeMethods.cs
- WebConfigurationManager.cs
- FileDialog.cs
- DetailsViewRowCollection.cs
- TextBreakpoint.cs
- ResourceDisplayNameAttribute.cs
- CodeExporter.cs
- InvalidDataException.cs
- X509PeerCertificateElement.cs
- ExternalFile.cs
- ColumnMapTranslator.cs
- OptimizerPatterns.cs
- PerformanceCounterPermission.cs
- InteropAutomationProvider.cs
- RegexCharClass.cs
- SqlNotificationRequest.cs
- VolatileEnlistmentMultiplexing.cs
- OleDbException.cs
- FormViewUpdatedEventArgs.cs
- ConfigXmlText.cs
- _CookieModule.cs
- EventLogEntry.cs
- StringToken.cs
- TrackingMemoryStream.cs
- WinOEToolBoxItem.cs
- CfgParser.cs
- DirectionalAction.cs
- HttpHeaderCollection.cs
- AssemblyBuilder.cs
- DataBoundControlHelper.cs
- ToolStripDropDownClosedEventArgs.cs
- FeedUtils.cs
- DataRelationPropertyDescriptor.cs
- OracleMonthSpan.cs
- Matrix3DStack.cs
- CodeDelegateInvokeExpression.cs
- _ListenerResponseStream.cs
- CachedBitmap.cs
- SqlGatherConsumedAliases.cs
- SiteMapNodeItemEventArgs.cs
- ElementHostPropertyMap.cs
- OperationAbortedException.cs
- ConditionalDesigner.cs
- FileDialogCustomPlacesCollection.cs
- BitmapEffectDrawingContextState.cs
- SingleSelectRootGridEntry.cs
- TypeConverterMarkupExtension.cs
- DoubleUtil.cs
- MessageQueuePermission.cs
- IntSecurity.cs
- SelectedCellsCollection.cs
- FontFamilyValueSerializer.cs
- _Connection.cs
- OrderedEnumerableRowCollection.cs
- KeyboardNavigation.cs
- MorphHelpers.cs
- SpeechRecognizer.cs
- HwndSubclass.cs
- BackgroundWorker.cs
- ItemAutomationPeer.cs
- DbParameterHelper.cs
- Compress.cs
- TimelineClockCollection.cs
- OptimalTextSource.cs
- DependencyPropertyDescriptor.cs
- Translator.cs
- PartialTrustHelpers.cs
- BitVector32.cs
- StrokeSerializer.cs
- SafeNativeMethods.cs
- WindowCollection.cs
- SqlAggregateChecker.cs
- AccessText.cs
- WebPartCloseVerb.cs
- ArgumentOutOfRangeException.cs
- AccessedThroughPropertyAttribute.cs
- SHA1.cs
- XmlSchemaFacet.cs
- NumericExpr.cs
- HttpProfileGroupBase.cs
- BamlTreeMap.cs
- FormsAuthenticationTicket.cs
- Single.cs
- TargetFrameworkAttribute.cs