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
- AccessDataSource.cs
- MouseGesture.cs
- TypeUtil.cs
- ToolStripScrollButton.cs
- DoubleAnimationUsingKeyFrames.cs
- Translator.cs
- RemoteWebConfigurationHost.cs
- TransformDescriptor.cs
- AffineTransform3D.cs
- OutOfMemoryException.cs
- MemberRelationshipService.cs
- Panel.cs
- ThreadPoolTaskScheduler.cs
- RecognizerStateChangedEventArgs.cs
- IntegerValidator.cs
- EntitySetBaseCollection.cs
- HebrewNumber.cs
- AuthenticateEventArgs.cs
- IODescriptionAttribute.cs
- WebAdminConfigurationHelper.cs
- ServicesUtilities.cs
- DocumentSchemaValidator.cs
- MimeMapping.cs
- ParsedAttributeCollection.cs
- ParagraphVisual.cs
- RSAPKCS1SignatureFormatter.cs
- TableParagraph.cs
- WaitForChangedResult.cs
- FixedTextContainer.cs
- Stroke2.cs
- ImageKeyConverter.cs
- ValidationResult.cs
- SocketException.cs
- DataGridViewCellCancelEventArgs.cs
- BufferedStream2.cs
- PkcsUtils.cs
- MouseEventArgs.cs
- Figure.cs
- Help.cs
- DataKeyCollection.cs
- WindowsGrip.cs
- SslStreamSecurityUpgradeProvider.cs
- HttpListener.cs
- _SecureChannel.cs
- WebPartCancelEventArgs.cs
- OleDbTransaction.cs
- XmlSiteMapProvider.cs
- SessionPageStateSection.cs
- AttachedPropertiesService.cs
- DataBinding.cs
- SecurityRequiresReviewAttribute.cs
- Control.cs
- PageMediaSize.cs
- SchemaObjectWriter.cs
- XmlMemberMapping.cs
- TreeChangeInfo.cs
- CacheRequest.cs
- Executor.cs
- InkCollectionBehavior.cs
- RectKeyFrameCollection.cs
- QuaternionRotation3D.cs
- TableLayoutSettings.cs
- ModelMemberCollection.cs
- Update.cs
- DataStorage.cs
- ServiceModelSecurityTokenRequirement.cs
- CodeNamespaceCollection.cs
- ObjectNotFoundException.cs
- ToolStripEditorManager.cs
- XmlNamespaceManager.cs
- DataServiceProcessingPipeline.cs
- WindowsGraphics.cs
- ConnectionPointCookie.cs
- SessionEndingCancelEventArgs.cs
- RegisteredHiddenField.cs
- ListBindingHelper.cs
- KeyboardEventArgs.cs
- GiveFeedbackEvent.cs
- DataKey.cs
- EDesignUtil.cs
- ExpressionNode.cs
- StaticExtension.cs
- MissingSatelliteAssemblyException.cs
- SelectionChangedEventArgs.cs
- Wizard.cs
- UnknownWrapper.cs
- SystemIcmpV6Statistics.cs
- QilChoice.cs
- MouseButtonEventArgs.cs
- PhysicalFontFamily.cs
- ItemsControl.cs
- PreProcessor.cs
- XmlSchemaAttributeGroup.cs
- PartialToken.cs
- DataTableClearEvent.cs
- EncoderParameter.cs
- DescendantOverDescendantQuery.cs
- ReflectEventDescriptor.cs
- CompressionTransform.cs
- EastAsianLunisolarCalendar.cs