Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / XPath / Internal / Operator.cs / 1 / Operator.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 Operator : AstNode {
public enum Op {
LT,
GT,
LE,
GE,
EQ,
NE,
PLUS,
MINUS,
MUL,
MOD,
DIV,
OR,
AND,
UNION,
INVALID
};
private Op opType;
private AstNode opnd1;
private AstNode opnd2;
public Operator(Op op, AstNode opnd1, AstNode opnd2) {
this.opType = op;
this.opnd1 = opnd1;
this.opnd2 = opnd2;
}
public override AstType Type { get {return AstType.Operator;} }
public override XPathResultType ReturnType {
get {
if (opType < Op.LT) {
return XPathResultType.Number;
}
if (opType < Op.UNION) {
return XPathResultType.Boolean;
}
return XPathResultType.NodeSet;
}
}
public Op OperatorType { get { return opType; } }
public AstNode Operand1 { get { return opnd1; } }
public AstNode Operand2 { get { return opnd2; } }
}
}
// 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
- PersistenceContextEnlistment.cs
- BasePropertyDescriptor.cs
- HtmlTernaryTree.cs
- HttpServerVarsCollection.cs
- Process.cs
- Single.cs
- ArgumentValue.cs
- ParagraphVisual.cs
- FormViewUpdatedEventArgs.cs
- StreamUpdate.cs
- IdentityManager.cs
- ToolZoneDesigner.cs
- _Win32.cs
- ComponentManagerBroker.cs
- NoneExcludedImageIndexConverter.cs
- DefaultValueConverter.cs
- Visitor.cs
- DurableRuntimeValidator.cs
- Int64KeyFrameCollection.cs
- StreamAsIStream.cs
- UserControl.cs
- HtmlLiteralTextAdapter.cs
- WorkItem.cs
- HttpStaticObjectsCollectionBase.cs
- ObjectParameter.cs
- _SafeNetHandles.cs
- Lease.cs
- Int16Animation.cs
- IPAddressCollection.cs
- TraceListener.cs
- TransportContext.cs
- ToolStripDropDown.cs
- ClonableStack.cs
- SecurityManager.cs
- DebugView.cs
- CategoryNameCollection.cs
- DataGridTablesFactory.cs
- _TimerThread.cs
- EncryptedPackageFilter.cs
- SafeFileMapViewHandle.cs
- DesignObjectWrapper.cs
- GuidelineCollection.cs
- SerialReceived.cs
- DataContractJsonSerializer.cs
- EventSinkHelperWriter.cs
- X509SecurityTokenAuthenticator.cs
- CodeIdentifiers.cs
- _ScatterGatherBuffers.cs
- ValidatorCollection.cs
- ExtenderHelpers.cs
- PolicyReader.cs
- WebPartConnectionsDisconnectVerb.cs
- ActionItem.cs
- SettingsPropertyNotFoundException.cs
- future.cs
- SqlTypeSystemProvider.cs
- DataPager.cs
- oledbconnectionstring.cs
- Matrix3DConverter.cs
- SimpleBitVector32.cs
- ValidationResult.cs
- FlowNode.cs
- NativeWrapper.cs
- XamlTypeMapperSchemaContext.cs
- XDeferredAxisSource.cs
- VisualStyleRenderer.cs
- QuaternionConverter.cs
- BaseUriHelper.cs
- ContentType.cs
- CodeCommentStatement.cs
- MessageQueueTransaction.cs
- DataIdProcessor.cs
- BitmapEncoder.cs
- HttpProcessUtility.cs
- MailSettingsSection.cs
- ZipArchive.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DataGridViewCellMouseEventArgs.cs
- SQLBinaryStorage.cs
- DesignerObjectListAdapter.cs
- HttpModulesSection.cs
- Dump.cs
- XamlSerializerUtil.cs
- MediaPlayerState.cs
- ArrayTypeMismatchException.cs
- DateTimeFormatInfo.cs
- Vertex.cs
- DataGridViewSelectedRowCollection.cs
- WebPartHeaderCloseVerb.cs
- WebPartsPersonalizationAuthorization.cs
- Message.cs
- XmlKeywords.cs
- SystemIPv6InterfaceProperties.cs
- FormViewInsertEventArgs.cs
- Matrix.cs
- EmptyEnumerator.cs
- OrderByLifter.cs
- ScheduleChanges.cs
- SrgsText.cs
- Int32Storage.cs