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
- QuaternionAnimation.cs
- MarkupExtensionSerializer.cs
- DataControlFieldCell.cs
- ButtonBaseAdapter.cs
- WebServiceClientProxyGenerator.cs
- IisTraceListener.cs
- Debug.cs
- _SslStream.cs
- QueryCacheManager.cs
- HttpAsyncResult.cs
- QuadTree.cs
- SafeNativeHandle.cs
- ValueProviderWrapper.cs
- ContainerActivationHelper.cs
- CellLabel.cs
- ButtonDesigner.cs
- ListViewTableRow.cs
- MediaTimeline.cs
- BitmapPalettes.cs
- OverflowException.cs
- SerializationAttributes.cs
- ComponentEditorForm.cs
- TypeSemantics.cs
- PropertyMap.cs
- RunInstallerAttribute.cs
- Resources.Designer.cs
- XmlSchemaValidator.cs
- IConvertible.cs
- RemotingConfiguration.cs
- OperatingSystemVersionCheck.cs
- XmlNullResolver.cs
- ProxyHwnd.cs
- KeyedHashAlgorithm.cs
- SerialPort.cs
- ObjectManager.cs
- WebBrowserProgressChangedEventHandler.cs
- LayoutUtils.cs
- DecoderFallback.cs
- ISessionStateStore.cs
- SqlDeflator.cs
- DataGridViewCellStateChangedEventArgs.cs
- ProjectionCamera.cs
- RecognizerStateChangedEventArgs.cs
- CheckBox.cs
- WindowsSolidBrush.cs
- SID.cs
- PixelShader.cs
- BooleanKeyFrameCollection.cs
- SamlConstants.cs
- TextDecorationCollection.cs
- ExceptionHandlersDesigner.cs
- UInt32Storage.cs
- MouseCaptureWithinProperty.cs
- ListSortDescription.cs
- Hash.cs
- ContextMarshalException.cs
- QilValidationVisitor.cs
- DataGridViewColumnEventArgs.cs
- TextRunCache.cs
- ToolStripSplitStackLayout.cs
- XmlSchemaAnnotation.cs
- UseManagedPresentationElement.cs
- SafeCertificateStore.cs
- HtmlForm.cs
- ExtensionQuery.cs
- MonikerSyntaxException.cs
- C14NUtil.cs
- ReadOnlyDictionary.cs
- XPathNode.cs
- RightsManagementProvider.cs
- PropertyOverridesTypeEditor.cs
- VoiceInfo.cs
- PriorityRange.cs
- ImageMetadata.cs
- XPathParser.cs
- CodeAssignStatement.cs
- DragDropHelper.cs
- HashHelpers.cs
- MethodRental.cs
- SystemResourceKey.cs
- XmlSchemaComplexContentRestriction.cs
- DnsPermission.cs
- ExtractCollection.cs
- UIElement.cs
- COM2ComponentEditor.cs
- QueryOpcode.cs
- DeviceFilterEditorDialog.cs
- ObjectStateFormatter.cs
- SQLMoney.cs
- Polyline.cs
- AssociatedControlConverter.cs
- UndoManager.cs
- ItemType.cs
- TrustSection.cs
- WindowsScrollBarBits.cs
- StateChangeEvent.cs
- XmlValidatingReaderImpl.cs
- Base64Encoder.cs
- CodeObject.cs
- BidOverLoads.cs