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
- WhitespaceSignificantCollectionAttribute.cs
- Win32PrintDialog.cs
- PartEditor.cs
- ViewGenerator.cs
- ExceptionRoutedEventArgs.cs
- NativeMethods.cs
- SwitchLevelAttribute.cs
- EventNotify.cs
- TimersDescriptionAttribute.cs
- ExternalCalls.cs
- FileLoadException.cs
- loginstatus.cs
- PrintPageEvent.cs
- Label.cs
- DataGridSortCommandEventArgs.cs
- ListViewGroupCollectionEditor.cs
- DataContractSet.cs
- Component.cs
- SchemaAttDef.cs
- TokenBasedSet.cs
- ObjectContext.cs
- ControlAdapter.cs
- HyperLinkField.cs
- HtmlTableCellCollection.cs
- HtmlMeta.cs
- Internal.cs
- ConstraintConverter.cs
- PersistenceIOParticipant.cs
- SafeFileHandle.cs
- PropertyTab.cs
- DelegateBodyWriter.cs
- BaseComponentEditor.cs
- WeakReference.cs
- GenericWebPart.cs
- FixedPageStructure.cs
- Translator.cs
- FileVersionInfo.cs
- DecoderExceptionFallback.cs
- SaveFileDialog.cs
- GenericRootAutomationPeer.cs
- DataServices.cs
- ToolStripItemTextRenderEventArgs.cs
- DbgUtil.cs
- DataGridViewLayoutData.cs
- SqlDataSourceQueryEditor.cs
- AspNetSynchronizationContext.cs
- DispatchChannelSink.cs
- WbmpConverter.cs
- AccessedThroughPropertyAttribute.cs
- HostProtectionPermission.cs
- SessionPageStatePersister.cs
- StackOverflowException.cs
- SwitchCase.cs
- Resources.Designer.cs
- CodeAttributeArgumentCollection.cs
- EnumBuilder.cs
- SafeHandle.cs
- Helpers.cs
- IOThreadScheduler.cs
- DynamicObject.cs
- DataTableReaderListener.cs
- CharacterBuffer.cs
- HostProtectionException.cs
- SerializationInfoEnumerator.cs
- initElementDictionary.cs
- MediaPlayer.cs
- QilName.cs
- PreservationFileWriter.cs
- DateTimeUtil.cs
- SoapTypeAttribute.cs
- TranslateTransform3D.cs
- SchemaCollectionPreprocessor.cs
- XmlKeywords.cs
- MeshGeometry3D.cs
- KeyValuePair.cs
- Command.cs
- SpellCheck.cs
- Drawing.cs
- PointLight.cs
- ObjectQuery.cs
- InputDevice.cs
- SoapExtensionTypeElement.cs
- HttpDebugHandler.cs
- FlowDocumentPaginator.cs
- IndentedWriter.cs
- HtmlInputRadioButton.cs
- Axis.cs
- SoapAttributeAttribute.cs
- BamlReader.cs
- PathFigure.cs
- StringSource.cs
- Registry.cs
- CacheHelper.cs
- EntityDataSourceEntityTypeFilterItem.cs
- StringFunctions.cs
- CacheEntry.cs
- NavigationPropertySingletonExpression.cs
- HashAlgorithm.cs
- ProfessionalColorTable.cs
- DataGridViewButtonColumn.cs