Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- HttpClientChannel.cs
- KeyedCollection.cs
- Msec.cs
- Point3DCollectionConverter.cs
- OdbcEnvironmentHandle.cs
- ProgressBar.cs
- DataSourceExpressionCollection.cs
- FrameworkContentElement.cs
- Page.cs
- DataGridViewColumnEventArgs.cs
- BrowserCapabilitiesFactory.cs
- ClipboardProcessor.cs
- ThumbAutomationPeer.cs
- ImmutableDispatchRuntime.cs
- DirectoryObjectSecurity.cs
- EntityDesignerBuildProvider.cs
- TextEncodedRawTextWriter.cs
- HttpResponseWrapper.cs
- HGlobalSafeHandle.cs
- MsmqIntegrationInputMessage.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DataGridViewButtonCell.cs
- AppDomainProtocolHandler.cs
- ProxyWebPart.cs
- DependencyPropertyHelper.cs
- XsdValidatingReader.cs
- CalendarDay.cs
- TimeSpan.cs
- ConfigurationFileMap.cs
- AdRotatorDesigner.cs
- ImageSource.cs
- ResourceExpression.cs
- XPathNavigator.cs
- ControlIdConverter.cs
- IdentityManager.cs
- ActivationArguments.cs
- MouseGestureConverter.cs
- DataFormats.cs
- CancellationTokenRegistration.cs
- UriTemplateLiteralQueryValue.cs
- ConfigXmlCDataSection.cs
- XmlSchemaAttribute.cs
- ChannelCacheSettings.cs
- CounterSample.cs
- WindowVisualStateTracker.cs
- GeneralTransformCollection.cs
- CopyOnWriteList.cs
- IteratorDescriptor.cs
- NotEqual.cs
- IIS7UserPrincipal.cs
- OleDbEnumerator.cs
- TagMapInfo.cs
- BuildProvidersCompiler.cs
- Attributes.cs
- PropertyEmitter.cs
- CompositeTypefaceMetrics.cs
- XmlSchemaAppInfo.cs
- EntityParameterCollection.cs
- VisualStyleTypesAndProperties.cs
- RegisteredExpandoAttribute.cs
- UshortList2.cs
- BamlBinaryWriter.cs
- _NtlmClient.cs
- KeyGesture.cs
- TableHeaderCell.cs
- HttpPostServerProtocol.cs
- WeakRefEnumerator.cs
- HashCodeCombiner.cs
- DefinitionBase.cs
- Vector3DCollection.cs
- SystemResources.cs
- SelfIssuedAuthProofToken.cs
- SymbolDocumentGenerator.cs
- WebPartChrome.cs
- Schedule.cs
- CodeSnippetCompileUnit.cs
- HttpRequestWrapper.cs
- BitmapEffectDrawing.cs
- AddInSegmentDirectoryNotFoundException.cs
- SecurityAttributeGenerationHelper.cs
- UpdateTranslator.cs
- ToolStripSplitStackLayout.cs
- WindowsMenu.cs
- ImageCreator.cs
- ConfigurationPermission.cs
- UnknownWrapper.cs
- SolidBrush.cs
- MessageBox.cs
- SystemWebExtensionsSectionGroup.cs
- EmptyStringExpandableObjectConverter.cs
- CharKeyFrameCollection.cs
- MergeFilterQuery.cs
- counter.cs
- SplitContainerDesigner.cs
- TransformGroup.cs
- DataGridViewColumnCollectionEditor.cs
- EmptyReadOnlyDictionaryInternal.cs
- ToolStripRenderer.cs
- DialogResultConverter.cs
- AuthenticatingEventArgs.cs