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
- IdentityNotMappedException.cs
- WindowsFormsLinkLabel.cs
- FixedSOMPage.cs
- ToggleButton.cs
- FileFormatException.cs
- UTF8Encoding.cs
- DrawingVisualDrawingContext.cs
- _FtpDataStream.cs
- SecureStringHasher.cs
- HttpRequestCacheValidator.cs
- HashHelper.cs
- Int64Animation.cs
- DataTableClearEvent.cs
- counter.cs
- ProcessHostServerConfig.cs
- HttpListener.cs
- ComponentEvent.cs
- TrackingMemoryStream.cs
- DbConnectionOptions.cs
- FrameworkContextData.cs
- EastAsianLunisolarCalendar.cs
- VBIdentifierTrimConverter.cs
- DataRow.cs
- BorderGapMaskConverter.cs
- XamlToRtfWriter.cs
- GorillaCodec.cs
- DesignerCategoryAttribute.cs
- TranslateTransform3D.cs
- PrintPreviewGraphics.cs
- CfgParser.cs
- DataControlFieldTypeEditor.cs
- FontFamily.cs
- StyleSheetRefUrlEditor.cs
- TextReturnReader.cs
- WebPartConnectionsDisconnectVerb.cs
- recordstatefactory.cs
- InlineCollection.cs
- CodeIndexerExpression.cs
- MasterPageCodeDomTreeGenerator.cs
- Cursors.cs
- _CacheStreams.cs
- FontCollection.cs
- MachineKeySection.cs
- CompoundFileReference.cs
- BaseValidator.cs
- DataRelation.cs
- BitmapEffectDrawing.cs
- PathFigure.cs
- LongTypeConverter.cs
- CodeArrayCreateExpression.cs
- XmlWrappingWriter.cs
- RelatedImageListAttribute.cs
- ErrorBehavior.cs
- ContainerActivationHelper.cs
- GlyphingCache.cs
- ClockGroup.cs
- ClosableStream.cs
- BuildProviderCollection.cs
- BuildProvidersCompiler.cs
- PasswordTextNavigator.cs
- DataGridLinkButton.cs
- LineMetrics.cs
- ThicknessAnimationUsingKeyFrames.cs
- HttpServerVarsCollection.cs
- QuaternionAnimationUsingKeyFrames.cs
- Hashtable.cs
- UrlMappingsSection.cs
- DbConnectionPoolCounters.cs
- HScrollProperties.cs
- HttpSessionStateBase.cs
- DispatchChannelSink.cs
- CqlLexerHelpers.cs
- ImageSourceConverter.cs
- FilteredAttributeCollection.cs
- Debug.cs
- FormsIdentity.cs
- SafeProcessHandle.cs
- DetailsViewPagerRow.cs
- XmlSchemaDatatype.cs
- ReadOnlyMetadataCollection.cs
- TextReader.cs
- IdnMapping.cs
- SerialReceived.cs
- ExpanderAutomationPeer.cs
- SectionUpdates.cs
- XPathNavigatorKeyComparer.cs
- Predicate.cs
- ImageButton.cs
- HtmlControlPersistable.cs
- RectIndependentAnimationStorage.cs
- MessageBuilder.cs
- DataGridViewComboBoxCell.cs
- QilPatternVisitor.cs
- XmlText.cs
- ToolStripRenderer.cs
- LockCookie.cs
- TextElementEnumerator.cs
- SqlTriggerContext.cs
- DrawingBrush.cs
- StatusCommandUI.cs