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
- TextStore.cs
- RegistryKey.cs
- ListItemConverter.cs
- IdentityValidationException.cs
- TabControl.cs
- SqlNodeAnnotation.cs
- PromptBuilder.cs
- PackagingUtilities.cs
- propertytag.cs
- ServiceInfo.cs
- DropShadowBitmapEffect.cs
- TextSelectionHelper.cs
- Match.cs
- MulticastOption.cs
- CrossContextChannel.cs
- DeferredElementTreeState.cs
- SSmlParser.cs
- StringResourceManager.cs
- ServiceModelActivationSectionGroup.cs
- XmlSchemaSubstitutionGroup.cs
- DataBindingValueUIHandler.cs
- ConnectionInterfaceCollection.cs
- LifetimeServices.cs
- BinHexEncoding.cs
- WaitForChangedResult.cs
- StateRuntime.cs
- RtType.cs
- DataTableReaderListener.cs
- StringUtil.cs
- ContentType.cs
- CroppedBitmap.cs
- HtmlEmptyTagControlBuilder.cs
- RepeaterCommandEventArgs.cs
- NativeMethods.cs
- OutputCacheModule.cs
- DialogResultConverter.cs
- ListItemCollection.cs
- IdentityHolder.cs
- HttpListenerException.cs
- __Error.cs
- CustomTypeDescriptor.cs
- Column.cs
- NameValueFileSectionHandler.cs
- SerialStream.cs
- AtomPub10ServiceDocumentFormatter.cs
- Pens.cs
- LocatorPart.cs
- ImmComposition.cs
- ApplicationGesture.cs
- RemoteWebConfigurationHost.cs
- PhysicalFontFamily.cs
- NullRuntimeConfig.cs
- PackageProperties.cs
- _Events.cs
- UnionExpr.cs
- ProfileSettings.cs
- NumericPagerField.cs
- connectionpool.cs
- ProcessHostFactoryHelper.cs
- AbandonedMutexException.cs
- SafeRegistryKey.cs
- DataGridViewCellCollection.cs
- XmlUtilWriter.cs
- ChoiceConverter.cs
- BitmapEffectRenderDataResource.cs
- WorkflowApplicationAbortedEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- HashRepartitionStream.cs
- DataGridViewCellEventArgs.cs
- XPathConvert.cs
- RawStylusInputReport.cs
- ActivationArguments.cs
- NamedPipeTransportSecurity.cs
- PerfCounterSection.cs
- DesignerProperties.cs
- WebEventTraceProvider.cs
- DateTimeConverter2.cs
- ComponentChangedEvent.cs
- SafeArchiveContext.cs
- VisualStyleRenderer.cs
- ReachPageContentCollectionSerializerAsync.cs
- SHA256Managed.cs
- DesignerOptions.cs
- assertwrapper.cs
- DurableEnlistmentState.cs
- Receive.cs
- WindowCollection.cs
- GridItemCollection.cs
- SizeAnimation.cs
- ModelFactory.cs
- HttpCapabilitiesEvaluator.cs
- DataRow.cs
- TdsParameterSetter.cs
- UserNameSecurityTokenAuthenticator.cs
- DataTableCollection.cs
- BooleanProjectedSlot.cs
- BookmarkEventArgs.cs
- RtfFormatStack.cs
- DriveInfo.cs
- Attachment.cs