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
- Menu.cs
- WebConfigurationHostFileChange.cs
- HttpApplicationFactory.cs
- RadioButtonList.cs
- UpdateProgress.cs
- DoubleAnimationUsingPath.cs
- InvalidateEvent.cs
- SchemaImporter.cs
- Pair.cs
- PropagatorResult.cs
- PTConverter.cs
- DialogResultConverter.cs
- SharedPerformanceCounter.cs
- BinaryWriter.cs
- FormatterServicesNoSerializableCheck.cs
- CreateUserWizard.cs
- ModelPropertyDescriptor.cs
- ItemType.cs
- SpeechSynthesizer.cs
- ListenerSessionConnectionReader.cs
- SchemaAttDef.cs
- Array.cs
- SerializationHelper.cs
- SqlClientFactory.cs
- HitTestDrawingContextWalker.cs
- UnsafeNativeMethodsCLR.cs
- MultiBindingExpression.cs
- BasicSecurityProfileVersion.cs
- RadioButton.cs
- Button.cs
- XmlBinaryReader.cs
- StatusBarPanel.cs
- ImageDrawing.cs
- RadioButton.cs
- RemoveStoryboard.cs
- ContextCorrelationInitializer.cs
- SelectionEditor.cs
- CursorConverter.cs
- SlipBehavior.cs
- AvtEvent.cs
- ExtensionWindowHeader.cs
- EncoderNLS.cs
- PointAnimation.cs
- SR.cs
- FileDialog.cs
- SyndicationLink.cs
- ComponentSerializationService.cs
- AssemblyBuilder.cs
- ProcessExitedException.cs
- CachedTypeface.cs
- AllMembershipCondition.cs
- XmlImplementation.cs
- WsrmTraceRecord.cs
- SiteMembershipCondition.cs
- SolidColorBrush.cs
- DesignerVerbCollection.cs
- QilList.cs
- SystemIPv6InterfaceProperties.cs
- smtpconnection.cs
- CopyOfAction.cs
- XmlAggregates.cs
- SchemaTableOptionalColumn.cs
- QuarticEase.cs
- BuildProviderUtils.cs
- TriggerBase.cs
- DataGridCellClipboardEventArgs.cs
- ReliableSessionBindingElement.cs
- FormCollection.cs
- DataMisalignedException.cs
- PolicyReader.cs
- ToolStripPanelCell.cs
- EncryptedKey.cs
- SessionStateItemCollection.cs
- ControlValuePropertyAttribute.cs
- ProfileGroupSettingsCollection.cs
- UIElement3D.cs
- UrlAuthFailureHandler.cs
- RegexReplacement.cs
- DataGridViewRowEventArgs.cs
- FamilyMapCollection.cs
- FormsIdentity.cs
- DirectionalLight.cs
- StandardRuntimeEnumValidator.cs
- FileClassifier.cs
- HtmlFormParameterWriter.cs
- CellLabel.cs
- WindowsFont.cs
- DataGridViewTextBoxEditingControl.cs
- DataTableTypeConverter.cs
- DataGridViewImageColumn.cs
- Symbol.cs
- DigestTraceRecordHelper.cs
- InfoCardUIAgent.cs
- DesignerPerfEventProvider.cs
- EditorAttribute.cs
- BrowserTree.cs
- DataPagerFieldCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- SweepDirectionValidation.cs
- BuildProviderCollection.cs