Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualStyleTypesAndProperties.cs
- TextEditorSpelling.cs
- elementinformation.cs
- Enlistment.cs
- HtmlObjectListAdapter.cs
- MasterPageParser.cs
- RulePatternOps.cs
- EventSinkHelperWriter.cs
- TextRange.cs
- XmlDataCollection.cs
- __Error.cs
- GridViewRowPresenterBase.cs
- GuidelineSet.cs
- WriteTimeStream.cs
- WpfXamlLoader.cs
- ProjectionPath.cs
- HitTestFilterBehavior.cs
- Helper.cs
- XmlDataLoader.cs
- InheritedPropertyChangedEventArgs.cs
- OdbcTransaction.cs
- InvalidComObjectException.cs
- HasCopySemanticsAttribute.cs
- SelectionPattern.cs
- WebPartHeaderCloseVerb.cs
- Size.cs
- WrapPanel.cs
- DataObjectMethodAttribute.cs
- AxisAngleRotation3D.cs
- OrderingInfo.cs
- DefinitionUpdate.cs
- GacUtil.cs
- HttpWriter.cs
- MobileListItem.cs
- XmlSchemaNotation.cs
- ControlPersister.cs
- AuthorizationSection.cs
- DoubleCollectionValueSerializer.cs
- ImpersonateTokenRef.cs
- SeverityFilter.cs
- TriggerAction.cs
- MaxMessageSizeStream.cs
- LocatorGroup.cs
- RetrieveVirtualItemEventArgs.cs
- sqlnorm.cs
- SqlBulkCopyColumnMappingCollection.cs
- AsymmetricSignatureDeformatter.cs
- ToolStripSeparatorRenderEventArgs.cs
- X509AsymmetricSecurityKey.cs
- DeviceFilterEditorDialog.cs
- SchemaCollectionPreprocessor.cs
- SamlNameIdentifierClaimResource.cs
- TypedElement.cs
- Rfc4050KeyFormatter.cs
- URIFormatException.cs
- BindingNavigator.cs
- EmptyQuery.cs
- Visitor.cs
- RuntimeHandles.cs
- DesignerView.Commands.cs
- DataIdProcessor.cs
- EntryPointNotFoundException.cs
- PropertyToken.cs
- RightsManagementPermission.cs
- dtdvalidator.cs
- TypeContext.cs
- WebPartMenu.cs
- DtrList.cs
- ETagAttribute.cs
- DataSetViewSchema.cs
- RequestCacheManager.cs
- SafeIUnknown.cs
- SimpleFileLog.cs
- NumericUpDown.cs
- Root.cs
- SHA512Managed.cs
- SemanticAnalyzer.cs
- GridItemPatternIdentifiers.cs
- MultiAsyncResult.cs
- BitConverter.cs
- CommonGetThemePartSize.cs
- XmlFormatExtensionAttribute.cs
- BitmapFrameDecode.cs
- ScriptHandlerFactory.cs
- XamlWriter.cs
- HitTestFilterBehavior.cs
- PointHitTestResult.cs
- DynamicRenderer.cs
- GridViewPageEventArgs.cs
- TextProviderWrapper.cs
- AlgoModule.cs
- BitmapEffectGroup.cs
- HighlightComponent.cs
- OleDbInfoMessageEvent.cs
- TextEditorDragDrop.cs
- GridViewDeletedEventArgs.cs
- ComponentRenameEvent.cs
- QueryException.cs
- ReadOnlyHierarchicalDataSource.cs
- UserPreferenceChangingEventArgs.cs