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
- SmtpDigestAuthenticationModule.cs
- SqlReorderer.cs
- HttpHandlersSection.cs
- PermissionSet.cs
- StringValidator.cs
- ContentFileHelper.cs
- Mouse.cs
- ReferentialConstraint.cs
- ExpressionNode.cs
- _NestedSingleAsyncResult.cs
- AsnEncodedData.cs
- PersonalizationState.cs
- ActivityValidator.cs
- BamlTreeUpdater.cs
- TypeUsage.cs
- CaretElement.cs
- RawStylusSystemGestureInputReport.cs
- ItemPager.cs
- ToolboxDataAttribute.cs
- PreloadedPackages.cs
- CollectionViewProxy.cs
- RepeaterItemEventArgs.cs
- Number.cs
- BlockUIContainer.cs
- BackgroundFormatInfo.cs
- FunctionDefinition.cs
- DrawingGroup.cs
- MemoryMappedViewStream.cs
- AttachedPropertyDescriptor.cs
- EntityContainerEmitter.cs
- CharAnimationBase.cs
- FactoryGenerator.cs
- UpdatableGenericsFeature.cs
- MD5.cs
- HostSecurityManager.cs
- X509KeyIdentifierClauseType.cs
- CacheChildrenQuery.cs
- DataGridViewBand.cs
- Timer.cs
- SqlDataSourceQueryConverter.cs
- FileLogRecordHeader.cs
- PackageDigitalSignature.cs
- PixelShader.cs
- TypePresenter.xaml.cs
- ResourceBinder.cs
- AttributeCollection.cs
- MailSettingsSection.cs
- AspCompat.cs
- VisualStyleInformation.cs
- ResourceAttributes.cs
- Application.cs
- AlternationConverter.cs
- VirtualPathProvider.cs
- ExternalException.cs
- RemotingSurrogateSelector.cs
- ProxyElement.cs
- ResXBuildProvider.cs
- FileBasedResourceGroveler.cs
- LineProperties.cs
- SqlCacheDependencySection.cs
- TransformedBitmap.cs
- CompensationToken.cs
- KeyEventArgs.cs
- UidPropertyAttribute.cs
- OdbcConnection.cs
- LinearQuaternionKeyFrame.cs
- ActiveDesignSurfaceEvent.cs
- FrugalMap.cs
- TransactionInterop.cs
- IpcServerChannel.cs
- XmlSerializationWriter.cs
- XmlObjectSerializerReadContext.cs
- PinnedBufferMemoryStream.cs
- DebugTracing.cs
- AndCondition.cs
- Accessible.cs
- MenuItemStyle.cs
- Win32MouseDevice.cs
- SchemaComplexType.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DiscoveryDocumentLinksPattern.cs
- DispatcherProcessingDisabled.cs
- WebPartManagerInternals.cs
- EdmEntityTypeAttribute.cs
- DelayLoadType.cs
- BuildManager.cs
- SafeNativeMethods.cs
- Profiler.cs
- DiffuseMaterial.cs
- EntityDataSourceChangingEventArgs.cs
- WindowsRichEdit.cs
- InternalConfigHost.cs
- SuppressMergeCheckAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- IUnknownConstantAttribute.cs
- DateBoldEvent.cs
- DSASignatureFormatter.cs
- QueryOptionExpression.cs
- RelationshipFixer.cs
- XsltSettings.cs