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 / 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
- FileDialog.cs
- ViewStateException.cs
- unsafenativemethodstextservices.cs
- CrossAppDomainChannel.cs
- SamlAuthenticationStatement.cs
- MemberMemberBinding.cs
- ListControlActionList.cs
- XmlAttributeAttribute.cs
- SupportingTokenListenerFactory.cs
- WebEvents.cs
- CompoundFileDeflateTransform.cs
- EntityAdapter.cs
- TabPanel.cs
- PropertyBuilder.cs
- SemaphoreFullException.cs
- _ServiceNameStore.cs
- MatrixTransform.cs
- FixedSOMGroup.cs
- DoubleLink.cs
- KoreanCalendar.cs
- MSAAWinEventWrap.cs
- CompressStream.cs
- RectangleGeometry.cs
- DbConnectionPool.cs
- BinaryNegotiation.cs
- UnsafeNativeMethods.cs
- DataGridColumn.cs
- PasswordBoxAutomationPeer.cs
- FormCollection.cs
- PasswordDeriveBytes.cs
- RuntimeEnvironment.cs
- SimpleHandlerFactory.cs
- ObjectDisposedException.cs
- DataGridViewMethods.cs
- TypeDescriptionProvider.cs
- StringBuilder.cs
- _UriTypeConverter.cs
- SubclassTypeValidatorAttribute.cs
- AttributeCollection.cs
- ExpressionReplacer.cs
- typedescriptorpermission.cs
- _SslState.cs
- EncodingInfo.cs
- Camera.cs
- invalidudtexception.cs
- SpellerInterop.cs
- MenuItemBindingCollection.cs
- MessageQueueInstaller.cs
- CollectionViewGroupRoot.cs
- CodeBinaryOperatorExpression.cs
- TextContainer.cs
- KnownBoxes.cs
- GridViewColumnHeader.cs
- DBSqlParser.cs
- PhysicalAddress.cs
- RecordBuilder.cs
- MappingItemCollection.cs
- ResizingMessageFilter.cs
- ScaleTransform3D.cs
- LockRecursionException.cs
- PieceNameHelper.cs
- WsiProfilesElementCollection.cs
- DynamicDiscoveryDocument.cs
- HttpProcessUtility.cs
- ForEachAction.cs
- SecurityContextTokenCache.cs
- FormViewDeleteEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- CollectionViewSource.cs
- BooleanFunctions.cs
- RoutedEventHandlerInfo.cs
- CollectionsUtil.cs
- ToolBarButton.cs
- WebPartVerbCollection.cs
- SingleStorage.cs
- SmiRecordBuffer.cs
- ObjectQueryExecutionPlan.cs
- ToolboxDataAttribute.cs
- ToolStripManager.cs
- Itemizer.cs
- DocumentScope.cs
- SrgsOneOf.cs
- COM2PropertyDescriptor.cs
- DefaultBinder.cs
- FieldAccessException.cs
- AuthenticationSection.cs
- COM2Properties.cs
- LogWriteRestartAreaState.cs
- RtType.cs
- ObjectDisposedException.cs
- XPathDocumentBuilder.cs
- SqlBuilder.cs
- SynchronizedInputProviderWrapper.cs
- ContextStack.cs
- TypedColumnHandler.cs
- WebPartCatalogCloseVerb.cs
- GridViewSelectEventArgs.cs
- _ContextAwareResult.cs
- Rectangle.cs
- AutomationInteropProvider.cs