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
- StateItem.cs
- BitmapEffectGeneralTransform.cs
- milrender.cs
- ConfigurationStrings.cs
- OwnerDrawPropertyBag.cs
- HwndSource.cs
- MediaScriptCommandRoutedEventArgs.cs
- ConvertEvent.cs
- ReferenceSchema.cs
- NativeWrapper.cs
- CacheOutputQuery.cs
- NamespaceMapping.cs
- SqlSupersetValidator.cs
- Pens.cs
- CqlParserHelpers.cs
- DbInsertCommandTree.cs
- CodeStatementCollection.cs
- DataSourceBooleanViewSchemaConverter.cs
- NetworkInterface.cs
- HttpListenerPrefixCollection.cs
- SqlRewriteScalarSubqueries.cs
- SystemIPAddressInformation.cs
- FragmentQueryKB.cs
- ThicknessAnimationBase.cs
- HttpBrowserCapabilitiesBase.cs
- EncodingInfo.cs
- EntityConnection.cs
- COM2PropertyDescriptor.cs
- StructuralObject.cs
- ImageFormatConverter.cs
- Splitter.cs
- SaveFileDialog.cs
- MachinePropertyVariants.cs
- ListViewPagedDataSource.cs
- StylusPointDescription.cs
- EncoderFallback.cs
- _AutoWebProxyScriptEngine.cs
- BitmapFrame.cs
- ParameterBuilder.cs
- MimeWriter.cs
- SspiNegotiationTokenAuthenticatorState.cs
- Crc32.cs
- ContainsRowNumberChecker.cs
- TableLayout.cs
- MLangCodePageEncoding.cs
- RegisteredScript.cs
- XmlSchemaRedefine.cs
- InheritanceContextHelper.cs
- LinqDataSourceContextData.cs
- WindowsListView.cs
- IndentedTextWriter.cs
- SourceExpressionException.cs
- StackOverflowException.cs
- AtlasWeb.Designer.cs
- externdll.cs
- ContourSegment.cs
- IdentityVerifier.cs
- EventLogEntryCollection.cs
- SpotLight.cs
- HitTestWithGeometryDrawingContextWalker.cs
- NetNamedPipeBinding.cs
- Pkcs9Attribute.cs
- CultureInfoConverter.cs
- KnownIds.cs
- ConfigurationSchemaErrors.cs
- TextTreeObjectNode.cs
- AsyncCompletedEventArgs.cs
- PackagingUtilities.cs
- PrimitiveDataContract.cs
- XmlSchemaNotation.cs
- BehaviorEditorPart.cs
- TdsEnums.cs
- UnionCqlBlock.cs
- WebServiceHostFactory.cs
- TimestampInformation.cs
- View.cs
- Int16Storage.cs
- Int32CollectionConverter.cs
- InvalidPipelineStoreException.cs
- DetailsViewDeleteEventArgs.cs
- ExecutionTracker.cs
- ApplicationBuildProvider.cs
- StartFileNameEditor.cs
- CompilerWrapper.cs
- ProvidersHelper.cs
- MultiBindingExpression.cs
- ClientTargetCollection.cs
- ImageListStreamer.cs
- ContractInferenceHelper.cs
- Property.cs
- PartialClassGenerationTaskInternal.cs
- WebPartEditorApplyVerb.cs
- Substitution.cs
- SecurityTokenProviderContainer.cs
- TargetParameterCountException.cs
- ConnectionManagementSection.cs
- MultiBinding.cs
- JoinTreeSlot.cs
- TransportElement.cs
- CodeGroup.cs