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
- QueueProcessor.cs
- LockCookie.cs
- WrapPanel.cs
- ToolStripSystemRenderer.cs
- Message.cs
- PrintDialogException.cs
- KeyGestureConverter.cs
- DocumentReference.cs
- CriticalFinalizerObject.cs
- Transform.cs
- exports.cs
- ColorTypeConverter.cs
- GroupBox.cs
- FeatureSupport.cs
- XmlCustomFormatter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- CompressStream.cs
- DeobfuscatingStream.cs
- RemotingClientProxy.cs
- TaskFileService.cs
- LogEntry.cs
- ColumnTypeConverter.cs
- DBConcurrencyException.cs
- Rotation3DKeyFrameCollection.cs
- StyleXamlParser.cs
- SqlStatistics.cs
- TextAnchor.cs
- DynamicPropertyHolder.cs
- TaskHelper.cs
- EncoderExceptionFallback.cs
- ExpressionBuilder.cs
- MenuTracker.cs
- CommandHelpers.cs
- WsdlBuildProvider.cs
- ProfileSection.cs
- TreeWalker.cs
- FileSystemWatcher.cs
- Menu.cs
- EmbeddedMailObject.cs
- ResXResourceWriter.cs
- HttpInputStream.cs
- DataSourceCacheDurationConverter.cs
- Stopwatch.cs
- DispatcherSynchronizationContext.cs
- QuerySubExprEliminator.cs
- HashSetDebugView.cs
- QilGenerator.cs
- LinqDataView.cs
- AsyncOperationManager.cs
- SafeWaitHandle.cs
- GroupLabel.cs
- DesignerValidationSummaryAdapter.cs
- SqlConnectionHelper.cs
- ServicePointManager.cs
- RepeaterItemEventArgs.cs
- PasswordRecovery.cs
- ProfilePropertySettingsCollection.cs
- ScriptControlManager.cs
- FontEmbeddingManager.cs
- prefixendpointaddressmessagefilter.cs
- ImpersonationContext.cs
- DataSourceXmlSerializer.cs
- ReadOnlyNameValueCollection.cs
- XmlParser.cs
- XmlChoiceIdentifierAttribute.cs
- PriorityBinding.cs
- OdbcTransaction.cs
- ErrorTableItemStyle.cs
- ScriptControl.cs
- RegexRunnerFactory.cs
- ErrorHandler.cs
- PropertyTabChangedEvent.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- BaseValidator.cs
- FormCollection.cs
- SqlDataSourceQueryEditor.cs
- IList.cs
- Lease.cs
- ItemCollection.cs
- IPAddress.cs
- ClickablePoint.cs
- Int32AnimationBase.cs
- InputProcessorProfilesLoader.cs
- ObjectQuery.cs
- ResourceBinder.cs
- HyperLinkField.cs
- ToolStripSeparator.cs
- ScriptDescriptor.cs
- ConstantProjectedSlot.cs
- OdbcCommandBuilder.cs
- SecurityPermission.cs
- SessionState.cs
- Ref.cs
- OleAutBinder.cs
- HtmlHistory.cs
- RuleSettingsCollection.cs
- PartialTrustValidationBehavior.cs
- TableChangeProcessor.cs
- DispatcherObject.cs
- RootProjectionNode.cs