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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ElementHostAutomationPeer.cs
- PrincipalPermission.cs
- Errors.cs
- ToolStripItemRenderEventArgs.cs
- ClientType.cs
- ClientScriptManager.cs
- CounterSampleCalculator.cs
- ValueHandle.cs
- ObjectItemLoadingSessionData.cs
- ForceCopyBuildProvider.cs
- ListBox.cs
- DictionaryBase.cs
- SqlGatherProducedAliases.cs
- TextReturnReader.cs
- OleDbException.cs
- ResXFileRef.cs
- MultiView.cs
- ApplicationCommands.cs
- CookieHandler.cs
- WebUtil.cs
- UnrecognizedAssertionsBindingElement.cs
- StyleCollection.cs
- ClientOperation.cs
- DesignBindingEditor.cs
- ItemChangedEventArgs.cs
- WebPartZone.cs
- HtmlHead.cs
- ListComponentEditorPage.cs
- UnsafeNativeMethods.cs
- ProcessHostMapPath.cs
- DocumentStatusResources.cs
- CodeCompileUnit.cs
- AdRotator.cs
- XmlSchemaChoice.cs
- Parallel.cs
- ComponentResourceManager.cs
- DbXmlEnabledProviderManifest.cs
- MultipleViewPattern.cs
- CancellationHandlerDesigner.cs
- EncryptedData.cs
- DiagnosticTrace.cs
- WhiteSpaceTrimStringConverter.cs
- KeyTimeConverter.cs
- HoistedLocals.cs
- SqlDataSourceEnumerator.cs
- PersonalizationStateInfoCollection.cs
- ForwardPositionQuery.cs
- ProfileEventArgs.cs
- TextSelection.cs
- ClientEventManager.cs
- EditorBrowsableAttribute.cs
- LinkButton.cs
- ScriptResourceHandler.cs
- ClassImporter.cs
- ServiceBusyException.cs
- StrongNamePublicKeyBlob.cs
- TreeViewItemAutomationPeer.cs
- SessionStateContainer.cs
- ThreadWorkerController.cs
- Error.cs
- FixedFlowMap.cs
- Stylesheet.cs
- StateManagedCollection.cs
- Qualifier.cs
- ListViewUpdateEventArgs.cs
- ResXResourceReader.cs
- GridViewAutomationPeer.cs
- HttpConfigurationContext.cs
- ProxyWebPart.cs
- RuleSettings.cs
- OnOperation.cs
- ContainerCodeDomSerializer.cs
- EnterpriseServicesHelper.cs
- PtsHelper.cs
- SqlWorkflowInstanceStoreLock.cs
- TripleDES.cs
- RegexCompilationInfo.cs
- SignerInfo.cs
- DataRowCollection.cs
- TargetControlTypeCache.cs
- DataRowView.cs
- WebHttpSecurityModeHelper.cs
- MembershipPasswordException.cs
- Rfc2898DeriveBytes.cs
- AutoResetEvent.cs
- ViewKeyConstraint.cs
- input.cs
- TraceHandler.cs
- EntityException.cs
- ClipboardProcessor.cs
- BaseCodePageEncoding.cs
- PlainXmlDeserializer.cs
- CodeTypeMemberCollection.cs
- Int32RectValueSerializer.cs
- AliasExpr.cs
- CommentAction.cs
- Group.cs
- DoubleStorage.cs
- SrgsRulesCollection.cs
- StaticFileHandler.cs