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
- AttachedPropertyBrowsableAttribute.cs
- BamlStream.cs
- SqlDataSourceFilteringEventArgs.cs
- MessageDescriptionCollection.cs
- PropertyCollection.cs
- CommonDialog.cs
- DataGridViewTextBoxCell.cs
- ButtonFieldBase.cs
- DesignerOptionService.cs
- EventRecord.cs
- EdmEntityTypeAttribute.cs
- WebEventTraceProvider.cs
- HWStack.cs
- SqlUtil.cs
- CalendarDesigner.cs
- CombinedGeometry.cs
- ImageKeyConverter.cs
- GradientSpreadMethodValidation.cs
- WbmpConverter.cs
- ResourceWriter.cs
- MissingManifestResourceException.cs
- entityreference_tresulttype.cs
- ZoneButton.cs
- DesignerTransactionCloseEvent.cs
- OrderByQueryOptionExpression.cs
- DataGridViewComboBoxEditingControl.cs
- DataControlReferenceCollection.cs
- FloaterParaClient.cs
- _LocalDataStore.cs
- GradientSpreadMethodValidation.cs
- ControlBindingsCollection.cs
- BitmapInitialize.cs
- HttpChannelBindingToken.cs
- Quad.cs
- HttpListener.cs
- EventDescriptor.cs
- FigureParaClient.cs
- MessageLoggingElement.cs
- TransportConfigurationTypeElementCollection.cs
- BitmapPalettes.cs
- BaseComponentEditor.cs
- GetWinFXPath.cs
- WindowsFormsHost.cs
- BaseWebProxyFinder.cs
- GridItemCollection.cs
- TypedAsyncResult.cs
- IdentifierCollection.cs
- SQLGuidStorage.cs
- RegexInterpreter.cs
- HuffmanTree.cs
- EntityReference.cs
- QuaternionAnimationUsingKeyFrames.cs
- PropertyTabAttribute.cs
- QueueProcessor.cs
- CheckBoxAutomationPeer.cs
- DataGridViewAccessibleObject.cs
- CryptoProvider.cs
- Int16Storage.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TextStore.cs
- UnsafeNativeMethods.cs
- SchemaCollectionCompiler.cs
- ReliableOutputConnection.cs
- DataContractSerializerMessageContractImporter.cs
- ProcessInfo.cs
- XmlWriterTraceListener.cs
- OleDbParameterCollection.cs
- AnnotationMap.cs
- SQLRoleProvider.cs
- Track.cs
- FontStretches.cs
- LocationSectionRecord.cs
- UniqueEventHelper.cs
- WebPartConnectionsCancelEventArgs.cs
- InvalidFilterCriteriaException.cs
- NavigationPropertySingletonExpression.cs
- LocalValueEnumerator.cs
- HighlightVisual.cs
- BooleanAnimationUsingKeyFrames.cs
- ValidationRuleCollection.cs
- TreeBuilderBamlTranslator.cs
- WebPartTracker.cs
- DetailsViewUpdateEventArgs.cs
- Events.cs
- EntityWithKeyStrategy.cs
- arabicshape.cs
- SecurityKeyIdentifierClause.cs
- MimeObjectFactory.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- SizeConverter.cs
- AuthenticationModulesSection.cs
- ProjectionPathSegment.cs
- CompiledELinqQueryState.cs
- DataGridItemAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- DeferredReference.cs
- ObjectStateFormatter.cs
- Vector3DCollection.cs
- WindowsButton.cs
- XsltInput.cs