Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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, OR, AND, PLUS, MINUS, MUL, MOD, DIV, 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.PLUS) { return XPathResultType.Boolean; } if (opType < Op.UNION) { return XPathResultType.Number; } 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. // //[....] //----------------------------------------------------------------------------- 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, OR, AND, PLUS, MINUS, MUL, MOD, DIV, 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.PLUS) { return XPathResultType.Boolean; } if (opType < Op.UNION) { return XPathResultType.Number; } 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProxyAttribute.cs
- SqlAliaser.cs
- WhitespaceReader.cs
- QilValidationVisitor.cs
- DataKey.cs
- handlecollector.cs
- EventListenerClientSide.cs
- AuthenticationModuleElement.cs
- UserNameSecurityTokenProvider.cs
- ScriptComponentDescriptor.cs
- SocketPermission.cs
- Filter.cs
- RegexEditorDialog.cs
- CacheSection.cs
- RouteParameter.cs
- ScrollableControl.cs
- HistoryEventArgs.cs
- MatrixAnimationUsingKeyFrames.cs
- PackageProperties.cs
- SoapRpcServiceAttribute.cs
- UiaCoreTypesApi.cs
- PageCache.cs
- WebBrowserContainer.cs
- FunctionImportMapping.cs
- WindowHideOrCloseTracker.cs
- hresults.cs
- Rotation3DAnimationBase.cs
- XmlFileEditor.cs
- VersionConverter.cs
- HebrewCalendar.cs
- FunctionUpdateCommand.cs
- Cursors.cs
- UIElement3DAutomationPeer.cs
- QueryCacheKey.cs
- XpsStructure.cs
- GreenMethods.cs
- TableCell.cs
- AssemblyHash.cs
- PenCursorManager.cs
- New.cs
- NetworkCredential.cs
- AvTrace.cs
- TypeLibConverter.cs
- CacheRequest.cs
- Bitmap.cs
- DynamicPropertyReader.cs
- UniformGrid.cs
- TextBounds.cs
- XmlElementAttribute.cs
- Shared.cs
- SerialPort.cs
- LoginView.cs
- OleDbCommandBuilder.cs
- SqlDataSourceConfigureSortForm.cs
- PresentationSource.cs
- MSAAEventDispatcher.cs
- RelatedView.cs
- HorizontalAlignConverter.cs
- ArrayExtension.cs
- VBCodeProvider.cs
- WorkflowApplicationAbortedEventArgs.cs
- DBAsyncResult.cs
- DbSource.cs
- CompressedStack.cs
- SystemColorTracker.cs
- SqlTypeSystemProvider.cs
- Application.cs
- WsdlBuildProvider.cs
- InnerItemCollectionView.cs
- WindowsListViewItemStartMenu.cs
- GenerateTemporaryTargetAssembly.cs
- Literal.cs
- CaseInsensitiveComparer.cs
- XmlTypeAttribute.cs
- ProcessMonitor.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- IpcClientManager.cs
- ExtenderProvidedPropertyAttribute.cs
- PageAsyncTaskManager.cs
- AdapterDictionary.cs
- InvalidOperationException.cs
- FacetChecker.cs
- TypeNameParser.cs
- PersonalizationStateQuery.cs
- GenericXmlSecurityToken.cs
- DispatcherProcessingDisabled.cs
- WindowsRebar.cs
- XmlMembersMapping.cs
- _StreamFramer.cs
- AllMembershipCondition.cs
- SrgsSubset.cs
- ElementUtil.cs
- DataGridViewBand.cs
- Wizard.cs
- SecurityContextSecurityTokenAuthenticator.cs
- ThicknessAnimationUsingKeyFrames.cs
- GridViewDeleteEventArgs.cs
- AuthenticationModuleElement.cs
- MetafileEditor.cs