Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
// [....]
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArrangedElementCollection.cs
- Message.cs
- BitStack.cs
- DoubleStorage.cs
- DataGridColumnFloatingHeader.cs
- LineSegment.cs
- DbConnectionPoolOptions.cs
- OleDbConnection.cs
- BaseProcessor.cs
- RemotingConfigParser.cs
- ToolStripItemTextRenderEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- MaterialGroup.cs
- Propagator.ExtentPlaceholderCreator.cs
- PageSetupDialog.cs
- CompilationUnit.cs
- StreamReader.cs
- ConstraintConverter.cs
- TileBrush.cs
- EditCommandColumn.cs
- SecurityImpersonationBehavior.cs
- DrawTreeNodeEventArgs.cs
- XmlWrappingWriter.cs
- MimeBasePart.cs
- JapaneseLunisolarCalendar.cs
- LogRestartAreaEnumerator.cs
- Hex.cs
- BroadcastEventHelper.cs
- DataServiceQuery.cs
- StringConverter.cs
- DataControlField.cs
- CheckedListBox.cs
- SmtpNegotiateAuthenticationModule.cs
- StylusPoint.cs
- Identity.cs
- CreationContext.cs
- TableLayoutStyleCollection.cs
- XPathBinder.cs
- AuthStoreRoleProvider.cs
- MenuItemStyle.cs
- InstanceDataCollection.cs
- ProjectionCamera.cs
- RegexCapture.cs
- HybridDictionary.cs
- Gdiplus.cs
- SmiContextFactory.cs
- WebPart.cs
- DataColumn.cs
- XmlTextWriter.cs
- HtmlElementCollection.cs
- BookmarkUndoUnit.cs
- LicenseManager.cs
- AvTrace.cs
- RuntimeConfigLKG.cs
- MenuScrollingVisibilityConverter.cs
- InputManager.cs
- MutableAssemblyCacheEntry.cs
- OneWayElement.cs
- FacetValueContainer.cs
- HealthMonitoringSectionHelper.cs
- ClientSettingsSection.cs
- DesignUtil.cs
- TempFiles.cs
- XmlSerializerNamespaces.cs
- SchemaEntity.cs
- OdbcErrorCollection.cs
- WindowsNonControl.cs
- DeclaredTypeElement.cs
- UserPreferenceChangingEventArgs.cs
- TextBlock.cs
- ResourceManager.cs
- StatusBarAutomationPeer.cs
- WebPartConnectionsDisconnectVerb.cs
- DataGridViewColumnStateChangedEventArgs.cs
- MarkupExtensionReturnTypeAttribute.cs
- Section.cs
- XmlNodeComparer.cs
- ViewManager.cs
- DataBindingCollectionEditor.cs
- OperatingSystemVersionCheck.cs
- SQLChars.cs
- DesignerCommandAdapter.cs
- FunctionImportMapping.cs
- SecurityKeyIdentifier.cs
- IdentityModelStringsVersion1.cs
- HelpProvider.cs
- KeyedCollection.cs
- SafeArrayRankMismatchException.cs
- TemplatingOptionsDialog.cs
- HttpProfileGroupBase.cs
- StringStorage.cs
- DBConnectionString.cs
- RNGCryptoServiceProvider.cs
- shaperfactoryquerycacheentry.cs
- DesignRelation.cs
- ContactManager.cs
- RowBinding.cs
- TableItemPattern.cs
- TypePropertyEditor.cs
- DeviceSpecificChoice.cs