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
- WebPartDisplayModeEventArgs.cs
- DataRelationPropertyDescriptor.cs
- Cursor.cs
- GridViewDeleteEventArgs.cs
- HttpModulesSection.cs
- PropertyGridEditorPart.cs
- Border.cs
- SqlGatherConsumedAliases.cs
- TextMarkerSource.cs
- Triplet.cs
- documentsequencetextpointer.cs
- DeviceSpecificDialogCachedState.cs
- CompositeDuplexElement.cs
- ImageListStreamer.cs
- FixedStringLookup.cs
- Splitter.cs
- ResXResourceReader.cs
- XmlProcessingInstruction.cs
- _PooledStream.cs
- PtsPage.cs
- loginstatus.cs
- infer.cs
- UnsafeNativeMethods.cs
- GenericPrincipal.cs
- MimeReflector.cs
- MarkerProperties.cs
- _LazyAsyncResult.cs
- EventListenerClientSide.cs
- Asn1IntegerConverter.cs
- TextTreeRootNode.cs
- ListViewItemSelectionChangedEvent.cs
- ActivityExecutorDelegateInfo.cs
- FileChangeNotifier.cs
- LOSFormatter.cs
- Calendar.cs
- MemoryRecordBuffer.cs
- AppSecurityManager.cs
- JsonSerializer.cs
- ExpressionBuilderCollection.cs
- AxisAngleRotation3D.cs
- WebMessageBodyStyleHelper.cs
- PieceDirectory.cs
- FindCriteriaElement.cs
- XPathNodeList.cs
- WebServiceErrorEvent.cs
- ParallelQuery.cs
- ImageListImageEditor.cs
- MultipartIdentifier.cs
- MultipartIdentifier.cs
- QueueProcessor.cs
- LinkConverter.cs
- TypeConverterValueSerializer.cs
- RegexReplacement.cs
- StylusDownEventArgs.cs
- SvcMapFileSerializer.cs
- TextTreeTextElementNode.cs
- PathStreamGeometryContext.cs
- ActionFrame.cs
- DataSourceCache.cs
- SafeRightsManagementHandle.cs
- HttpServerUtilityBase.cs
- XmlElement.cs
- XmlCharCheckingReader.cs
- SafeProcessHandle.cs
- UnSafeCharBuffer.cs
- Helpers.cs
- MultipartContentParser.cs
- HostProtectionException.cs
- RuleSetDialog.Designer.cs
- TextUtf8RawTextWriter.cs
- SoapIgnoreAttribute.cs
- MaskDescriptor.cs
- SafeReadContext.cs
- wgx_commands.cs
- MultiPageTextView.cs
- TextDecorationCollection.cs
- GroupBox.cs
- ReadingWritingEntityEventArgs.cs
- DataTemplate.cs
- TypePropertyEditor.cs
- TaskCanceledException.cs
- _Semaphore.cs
- XPathItem.cs
- DrawingBrush.cs
- GraphicsContainer.cs
- BitmapInitialize.cs
- ToolBar.cs
- DataGridViewCheckBoxCell.cs
- UInt64.cs
- EntityKey.cs
- DbBuffer.cs
- Choices.cs
- Thread.cs
- InputBinding.cs
- ValidationSummary.cs
- BamlLocalizableResource.cs
- ScrollBarAutomationPeer.cs
- SpeakCompletedEventArgs.cs
- ContextBase.cs
- RandomNumberGenerator.cs