Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / Operand.cs / 1 / Operand.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;
internal class Operand : AstNode {
private XPathResultType type;
private object val;
public Operand(string val) {
this.type = XPathResultType.String;
this.val = val;
}
public Operand(double val) {
this.type = XPathResultType.Number;
this.val = val;
}
public Operand(bool val) {
this.type = XPathResultType.Boolean;
this.val = val;
}
public override AstType Type { get { return AstType.ConstantOperand; } }
public override XPathResultType ReturnType { get { return type; } }
public object OperandValue { get { return val; } }
}
}
// 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
- TextOutput.cs
- XmlSchemaType.cs
- RepeaterCommandEventArgs.cs
- FilteredXmlReader.cs
- HtmlInputFile.cs
- TextServicesCompartmentEventSink.cs
- FixedSOMFixedBlock.cs
- Pkcs9Attribute.cs
- AssemblyFilter.cs
- BitmapDownload.cs
- EpmContentSerializer.cs
- NativeCppClassAttribute.cs
- LookupNode.cs
- AddressAlreadyInUseException.cs
- EntityKey.cs
- CaseCqlBlock.cs
- GroupBoxRenderer.cs
- ToolbarAUtomationPeer.cs
- WebResponse.cs
- XmlNavigatorStack.cs
- MsmqInputMessagePool.cs
- ExpressionPrefixAttribute.cs
- DateTimePicker.cs
- DesignerForm.cs
- Scheduler.cs
- _HeaderInfo.cs
- CapabilitiesAssignment.cs
- Selection.cs
- CallbackCorrelationInitializer.cs
- TextReturnReader.cs
- GridItemPattern.cs
- SystemInformation.cs
- SQLInt64Storage.cs
- InitializerFacet.cs
- WebException.cs
- Panel.cs
- RotateTransform3D.cs
- LoadGrammarCompletedEventArgs.cs
- ProjectedSlot.cs
- KeyValuePair.cs
- BitmapMetadata.cs
- FixedSOMElement.cs
- ScriptServiceAttribute.cs
- PanelDesigner.cs
- TextRunCacheImp.cs
- CodeSnippetCompileUnit.cs
- ForwardPositionQuery.cs
- ExtentKey.cs
- AssemblyHash.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FileSystemEventArgs.cs
- AmbientLight.cs
- WebPartVerbsEventArgs.cs
- ProgressBarBrushConverter.cs
- DoubleLink.cs
- CorrelationRequestContext.cs
- SqlCommandBuilder.cs
- HttpApplicationStateBase.cs
- ComponentResourceKeyConverter.cs
- UIElementParagraph.cs
- DebugHandleTracker.cs
- ListViewAutomationPeer.cs
- TextViewSelectionProcessor.cs
- TCPListener.cs
- ScrollBar.cs
- RepeatBehaviorConverter.cs
- SerializationHelper.cs
- TCPClient.cs
- ForceCopyBuildProvider.cs
- ElapsedEventArgs.cs
- TypeExtensionConverter.cs
- SocketAddress.cs
- QueryContinueDragEvent.cs
- QueryRewriter.cs
- TableCell.cs
- RuntimeWrappedException.cs
- BitmapDownload.cs
- LinqDataSourceContextEventArgs.cs
- SqlGatherProducedAliases.cs
- EmptyStringExpandableObjectConverter.cs
- Int32AnimationUsingKeyFrames.cs
- SafeEventLogWriteHandle.cs
- IdentityManager.cs
- MonthChangedEventArgs.cs
- _OSSOCK.cs
- XmlnsPrefixAttribute.cs
- DescendentsWalker.cs
- ToolBarButtonClickEvent.cs
- _ScatterGatherBuffers.cs
- ServiceBusyException.cs
- SmiGettersStream.cs
- BaseParagraph.cs
- ObjectViewEntityCollectionData.cs
- XamlSerializerUtil.cs
- LayoutInformation.cs
- ListViewItem.cs
- DataViewManager.cs
- Choices.cs
- OptimizedTemplateContent.cs