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
- WindowsRebar.cs
- WebBrowserPermission.cs
- ScopeElement.cs
- XmlDictionaryWriter.cs
- PeerNameRecordCollection.cs
- InfoCardMetadataExchangeClient.cs
- BitmapEncoder.cs
- AmbientLight.cs
- VisualTransition.cs
- TypeConverterHelper.cs
- TextEditorSelection.cs
- ContentType.cs
- ApplicationActivator.cs
- TextEffectCollection.cs
- SqlTrackingQuery.cs
- UniqueEventHelper.cs
- ActiveXHelper.cs
- EditorZone.cs
- DeferredReference.cs
- ResourcesChangeInfo.cs
- Pair.cs
- PrePrepareMethodAttribute.cs
- ProtocolsConfigurationEntry.cs
- QilLiteral.cs
- DataSourceControl.cs
- XmlFormatReaderGenerator.cs
- CoTaskMemUnicodeSafeHandle.cs
- httpstaticobjectscollection.cs
- WebControlAdapter.cs
- OptimizedTemplateContent.cs
- DataBoundControlAdapter.cs
- ReversePositionQuery.cs
- TransformProviderWrapper.cs
- DiscriminatorMap.cs
- XmlSchemaException.cs
- CodeArrayCreateExpression.cs
- CreateUserWizard.cs
- diagnosticsswitches.cs
- FactoryGenerator.cs
- XmlAnyAttributeAttribute.cs
- FileIOPermission.cs
- WebSysDisplayNameAttribute.cs
- RotateTransform3D.cs
- WindowsFormsEditorServiceHelper.cs
- Console.cs
- Funcletizer.cs
- ProxyWebPartManager.cs
- OracleConnection.cs
- WebRequestModuleElementCollection.cs
- HotSpot.cs
- RectangleGeometry.cs
- DebugHandleTracker.cs
- ItemsControlAutomationPeer.cs
- TreeViewDesigner.cs
- WebPartAddingEventArgs.cs
- UMPAttributes.cs
- HtmlInputControl.cs
- LocalValueEnumerator.cs
- SettingsProviderCollection.cs
- ForeignConstraint.cs
- WebControlAdapter.cs
- AlternationConverter.cs
- ResourceProviderFactory.cs
- ForceCopyBuildProvider.cs
- ConvertEvent.cs
- XNodeValidator.cs
- RelatedImageListAttribute.cs
- PerformanceCounterManager.cs
- SqlDataSourceCache.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- uribuilder.cs
- TemplateComponentConnector.cs
- DWriteFactory.cs
- ToolStripDesignerAvailabilityAttribute.cs
- LinkLabelLinkClickedEvent.cs
- XmlHelper.cs
- NegotiationTokenAuthenticator.cs
- Fonts.cs
- UnsafeNativeMethods.cs
- PhysicalFontFamily.cs
- BinaryMessageEncodingBindingElement.cs
- ToolTipService.cs
- ErrorLog.cs
- TraversalRequest.cs
- KnownTypes.cs
- ServiceMemoryGates.cs
- XPathNodeList.cs
- MailMessageEventArgs.cs
- Empty.cs
- tibetanshape.cs
- NGCUIElementCollectionSerializerAsync.cs
- ExitEventArgs.cs
- SetIterators.cs
- Vector3DAnimation.cs
- FormsAuthenticationUser.cs
- CaseStatement.cs
- LinkClickEvent.cs
- ConstraintCollection.cs
- StringFreezingAttribute.cs
- SqlDataSourceView.cs