Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Guid.cs
- FormClosedEvent.cs
- DataServiceClientException.cs
- XmlCharacterData.cs
- RepeaterCommandEventArgs.cs
- SolidColorBrush.cs
- AcceleratedTokenAuthenticator.cs
- SystemIPGlobalStatistics.cs
- DispatcherObject.cs
- HttpCapabilitiesBase.cs
- XmlBaseReader.cs
- ImportOptions.cs
- PrimitiveCodeDomSerializer.cs
- EntityDataSourceDesigner.cs
- MergablePropertyAttribute.cs
- DataControlFieldHeaderCell.cs
- GridViewUpdatedEventArgs.cs
- BindingsSection.cs
- MoveSizeWinEventHandler.cs
- SQLInt64.cs
- TextBox.cs
- RadioButtonStandardAdapter.cs
- FixUp.cs
- UserControlBuildProvider.cs
- SqlConnectionHelper.cs
- FrugalMap.cs
- Range.cs
- CellParaClient.cs
- CultureInfoConverter.cs
- IDictionary.cs
- DataError.cs
- DbDataAdapter.cs
- Label.cs
- SqlDataSourceSelectingEventArgs.cs
- VirtualPathProvider.cs
- IDReferencePropertyAttribute.cs
- RtfControls.cs
- Application.cs
- SortDescriptionCollection.cs
- SqlWebEventProvider.cs
- RtfToXamlReader.cs
- RichTextBoxConstants.cs
- FacetDescriptionElement.cs
- BitVector32.cs
- BitVector32.cs
- ExpressionBuilderContext.cs
- ObjectPersistData.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Random.cs
- XmlSignificantWhitespace.cs
- MatrixKeyFrameCollection.cs
- WindowsContainer.cs
- ResourceDisplayNameAttribute.cs
- TryExpression.cs
- IteratorFilter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebPartEditorCancelVerb.cs
- clipboard.cs
- SqlDataReaderSmi.cs
- SelectedDatesCollection.cs
- EntityContainer.cs
- OAVariantLib.cs
- PeerDuplexChannel.cs
- ConfigurationStrings.cs
- XmlDocumentFragment.cs
- StreamInfo.cs
- CodeSnippetStatement.cs
- DataStreamFromComStream.cs
- querybuilder.cs
- CodeAttributeArgumentCollection.cs
- _RequestCacheProtocol.cs
- DynamicPropertyHolder.cs
- ConstraintStruct.cs
- TypeConverterAttribute.cs
- TextFormatterContext.cs
- Queue.cs
- sqlstateclientmanager.cs
- EtwTrace.cs
- WorkflowViewService.cs
- Trace.cs
- exports.cs
- ExtensionQuery.cs
- EncryptedType.cs
- CallTemplateAction.cs
- AttributeCollection.cs
- InspectionWorker.cs
- PermissionSetEnumerator.cs
- SQLSingle.cs
- ClientSponsor.cs
- ValueUtilsSmi.cs
- DataViewSettingCollection.cs
- SpecialNameAttribute.cs
- EmptyCollection.cs
- cookieexception.cs
- PieceNameHelper.cs
- SkinBuilder.cs
- SqlInternalConnectionTds.cs
- XsltContext.cs
- BoundPropertyEntry.cs
- DocumentViewerAutomationPeer.cs