Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Xml / System / Xml / XPath / Internal / Operator.cs / 2 / 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
- SHA1CryptoServiceProvider.cs
- ProfilePropertySettingsCollection.cs
- RegionData.cs
- CodeDOMUtility.cs
- ConstructorExpr.cs
- CultureSpecificCharacterBufferRange.cs
- NativeCppClassAttribute.cs
- XpsFilter.cs
- XmlQueryOutput.cs
- SafeNativeMethods.cs
- UndoManager.cs
- HandleExceptionArgs.cs
- AccessViolationException.cs
- NativeMethodsCLR.cs
- Columns.cs
- CngProperty.cs
- Opcode.cs
- WebPartDisplayModeCollection.cs
- DocumentAutomationPeer.cs
- XmlDataProvider.cs
- AutomationPatternInfo.cs
- AccessibilityHelperForVista.cs
- Deserializer.cs
- AccessedThroughPropertyAttribute.cs
- SspiNegotiationTokenProviderState.cs
- BaseTemplateParser.cs
- RewritingPass.cs
- AtlasWeb.Designer.cs
- OracleTimeSpan.cs
- CheckBoxBaseAdapter.cs
- AppSettingsExpressionBuilder.cs
- NavigationCommands.cs
- Object.cs
- TextSerializer.cs
- XPathScanner.cs
- UrlMappingsSection.cs
- XmlWellformedWriter.cs
- Matrix3D.cs
- TreeViewAutomationPeer.cs
- PropertyMapper.cs
- ComPlusServiceLoader.cs
- EntityProviderServices.cs
- ExtendedProtectionPolicy.cs
- SourceLocation.cs
- HttpRequest.cs
- FrameAutomationPeer.cs
- StatusBarDrawItemEvent.cs
- DeviceContext2.cs
- UrlAuthorizationModule.cs
- printdlgexmarshaler.cs
- RandomNumberGenerator.cs
- ConnectionString.cs
- XsltQilFactory.cs
- CustomAttributeSerializer.cs
- DataSourceDescriptorCollection.cs
- NullReferenceException.cs
- WebConfigurationHost.cs
- ProcessHostServerConfig.cs
- DataGridViewBindingCompleteEventArgs.cs
- Update.cs
- ContentControl.cs
- ItemsControlAutomationPeer.cs
- FormatSettings.cs
- UnmanagedHandle.cs
- IndexedDataBuffer.cs
- ChangeInterceptorAttribute.cs
- SQLBinary.cs
- ResourceContainerWrapper.cs
- WebPermission.cs
- VisemeEventArgs.cs
- WorkflowMessageEventHandler.cs
- CellIdBoolean.cs
- Point3DAnimation.cs
- UrlUtility.cs
- ArcSegment.cs
- Int32Collection.cs
- AtlasWeb.Designer.cs
- LabelExpression.cs
- RectangleConverter.cs
- UriSectionData.cs
- AppSecurityManager.cs
- CodeStatementCollection.cs
- BatchParser.cs
- Tracer.cs
- PageFunction.cs
- SoapReflectionImporter.cs
- MultipartIdentifier.cs
- IgnoreDataMemberAttribute.cs
- OrderByExpression.cs
- CustomPopupPlacement.cs
- EntityDataSourceConfigureObjectContext.cs
- MsmqException.cs
- DirectoryInfo.cs
- _SingleItemRequestCache.cs
- TdsParserSessionPool.cs
- EDesignUtil.cs
- Mutex.cs
- AutomationPropertyInfo.cs
- SystemDropShadowChrome.cs
- SectionInput.cs