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
- EmptyControlCollection.cs
- BaseHashHelper.cs
- KeyedCollection.cs
- TextEditorTables.cs
- Expander.cs
- StringArrayConverter.cs
- SHA512.cs
- DefaultSection.cs
- StubHelpers.cs
- ClientTarget.cs
- LocalizableResourceBuilder.cs
- ExceptionUtil.cs
- DefaultSerializationProviderAttribute.cs
- WeakReferenceEnumerator.cs
- BoundColumn.cs
- ClientProxyGenerator.cs
- SingleObjectCollection.cs
- SyndicationElementExtensionCollection.cs
- OutputScope.cs
- MultitargetingHelpers.cs
- ServiceCredentialsElement.cs
- LinqToSqlWrapper.cs
- smtpconnection.cs
- remotingproxy.cs
- PointLight.cs
- ADConnectionHelper.cs
- InProcStateClientManager.cs
- MessageTraceRecord.cs
- DesignerDataParameter.cs
- DbConnectionInternal.cs
- RangeBase.cs
- UncommonField.cs
- XmlCDATASection.cs
- MessageQueueKey.cs
- ConfigXmlReader.cs
- DataMember.cs
- CacheModeConverter.cs
- ProviderUtil.cs
- PrinterUnitConvert.cs
- ReadOnlyDictionary.cs
- CodeSnippetExpression.cs
- MetadataItemCollectionFactory.cs
- BaseValidator.cs
- WebPartConnectionsConnectVerb.cs
- Pair.cs
- DiscoveryDocument.cs
- RowSpanVector.cs
- COM2EnumConverter.cs
- XmlQualifiedName.cs
- FixedFlowMap.cs
- SoapIncludeAttribute.cs
- PrincipalPermission.cs
- FixedSOMTableCell.cs
- CultureTableRecord.cs
- SqlLiftWhereClauses.cs
- CellConstantDomain.cs
- HttpWrapper.cs
- NameNode.cs
- Math.cs
- WindowsRichEdit.cs
- Light.cs
- EncryptedKeyIdentifierClause.cs
- ObfuscationAttribute.cs
- WindowsSolidBrush.cs
- RequestCache.cs
- EntityUtil.cs
- GPStream.cs
- Imaging.cs
- UnhandledExceptionEventArgs.cs
- HttpListenerException.cs
- HtmlControlAdapter.cs
- SqlCacheDependency.cs
- ResXResourceReader.cs
- GcHandle.cs
- ParseHttpDate.cs
- documentation.cs
- MSAAWinEventWrap.cs
- _AuthenticationState.cs
- PageThemeParser.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ConnectionProviderAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StringValidator.cs
- PartialClassGenerationTask.cs
- TextBoxAutoCompleteSourceConverter.cs
- CryptoApi.cs
- HttpException.cs
- MessageBox.cs
- RealProxy.cs
- CapabilitiesUse.cs
- AnonymousIdentificationModule.cs
- GroupPartitionExpr.cs
- BufferBuilder.cs
- Graphics.cs
- DataGridState.cs
- MatrixTransform3D.cs
- QuaternionRotation3D.cs
- BindingExpression.cs
- ContextStack.cs
- TextEffect.cs