Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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, PLUS, MINUS, MUL, MOD, DIV, OR, AND, 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.LT) { return XPathResultType.Number; } if (opType < Op.UNION) { return XPathResultType.Boolean; } 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripDropDownClosingEventArgs.cs
- RecognitionEventArgs.cs
- FormsIdentity.cs
- BitmapEffectGroup.cs
- Rect3D.cs
- DocumentXmlWriter.cs
- ErrorHandler.cs
- SafeFindHandle.cs
- NamespaceMapping.cs
- DataGridViewCellCollection.cs
- LockedAssemblyCache.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- UriTemplate.cs
- FragmentNavigationEventArgs.cs
- JournalEntryStack.cs
- SpellerError.cs
- TimeSpan.cs
- AuthenticatingEventArgs.cs
- OleCmdHelper.cs
- MembershipValidatePasswordEventArgs.cs
- InplaceBitmapMetadataWriter.cs
- ContextMenuStrip.cs
- SQLGuidStorage.cs
- SchemaImporter.cs
- XmlCharType.cs
- WmpBitmapEncoder.cs
- Header.cs
- TextTreeTextNode.cs
- LineGeometry.cs
- EntityCodeGenerator.cs
- ConstraintConverter.cs
- WebPartHeaderCloseVerb.cs
- HtmlShim.cs
- RecognizeCompletedEventArgs.cs
- Converter.cs
- WebPartChrome.cs
- TextBounds.cs
- DebugView.cs
- Journaling.cs
- StateMachineSubscription.cs
- RadioButtonList.cs
- FieldToken.cs
- FormsAuthenticationCredentials.cs
- ValueProviderWrapper.cs
- WebBrowserBase.cs
- Range.cs
- SafeCryptContextHandle.cs
- OpCodes.cs
- ServerType.cs
- ObjectStorage.cs
- DrawingImage.cs
- ExceptionTranslationTable.cs
- UnsafeNativeMethods.cs
- ToolZone.cs
- BitmapImage.cs
- GlobalItem.cs
- BaseAppDomainProtocolHandler.cs
- PropertyGeneratedEventArgs.cs
- EntityEntry.cs
- Color.cs
- Util.cs
- WbmpConverter.cs
- ExeContext.cs
- DocumentScope.cs
- MarkupCompilePass1.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataGridViewRowCancelEventArgs.cs
- Pkcs7Recipient.cs
- DataBoundControlAdapter.cs
- ApplicationServiceManager.cs
- AnimationLayer.cs
- SignatureDescription.cs
- OdbcConnectionOpen.cs
- XamlRtfConverter.cs
- MailSettingsSection.cs
- PathNode.cs
- ResourceContainer.cs
- SqlDataSourceDesigner.cs
- RectangleConverter.cs
- CodeCastExpression.cs
- RowBinding.cs
- UriTemplate.cs
- SizeValueSerializer.cs
- TextProperties.cs
- XmlNodeChangedEventArgs.cs
- SafePipeHandle.cs
- MaterialCollection.cs
- QueryAccessibilityHelpEvent.cs
- TypeToStringValueConverter.cs
- PagedDataSource.cs
- RegexCompilationInfo.cs
- SqlCommand.cs
- GridViewSelectEventArgs.cs
- IdentifierCreationService.cs
- ReverseInheritProperty.cs
- Parser.cs
- ScaleTransform.cs
- PathFigureCollection.cs
- WebHttpSecurityElement.cs
- CompositeKey.cs