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
- ItemCollection.cs
- DataPager.cs
- SizeChangedEventArgs.cs
- Matrix3DValueSerializer.cs
- BoundingRectTracker.cs
- BuilderElements.cs
- BindingSource.cs
- DataSetMappper.cs
- XmlCharCheckingReader.cs
- ObjectContextServiceProvider.cs
- DataSourceCache.cs
- MsmqActivation.cs
- AnimationStorage.cs
- SspiNegotiationTokenAuthenticatorState.cs
- WebPartZone.cs
- StoreContentChangedEventArgs.cs
- ParserHooks.cs
- WebMessageFormatHelper.cs
- TcpAppDomainProtocolHandler.cs
- EntityDataSourceMemberPath.cs
- figurelength.cs
- COM2ComponentEditor.cs
- MarkupObject.cs
- PerfCounters.cs
- DocumentPageHost.cs
- MemberCollection.cs
- XmlSerializerFormatAttribute.cs
- TileModeValidation.cs
- XmlSchemaProviderAttribute.cs
- ScrollData.cs
- Stacktrace.cs
- HandlerWithFactory.cs
- ToolStripContentPanelRenderEventArgs.cs
- CodeAttributeArgument.cs
- DelayedRegex.cs
- FormViewUpdateEventArgs.cs
- DataTrigger.cs
- assertwrapper.cs
- DoubleLink.cs
- ProjectionPlanCompiler.cs
- KeyedHashAlgorithm.cs
- DSASignatureDeformatter.cs
- XmlIlGenerator.cs
- SerialPinChanges.cs
- GB18030Encoding.cs
- VectorAnimation.cs
- CatalogUtil.cs
- UnsafeNativeMethods.cs
- XmlSchemaResource.cs
- StateMachineWorkflowDesigner.cs
- TabControlEvent.cs
- BufferModesCollection.cs
- DocumentsTrace.cs
- PropertyEmitterBase.cs
- BaseCAMarshaler.cs
- NativeMethods.cs
- HelpInfo.cs
- StateMachineHelpers.cs
- DESCryptoServiceProvider.cs
- DeviceContext.cs
- InputBindingCollection.cs
- MenuItemBinding.cs
- PointAnimationBase.cs
- DefaultBindingPropertyAttribute.cs
- Vector.cs
- DPCustomTypeDescriptor.cs
- TextReader.cs
- DiagnosticsConfiguration.cs
- RedistVersionInfo.cs
- UnsafePeerToPeerMethods.cs
- SqlDataSourceView.cs
- TextOptionsInternal.cs
- MostlySingletonList.cs
- RegionData.cs
- TypePresenter.xaml.cs
- XmlSchema.cs
- AllMembershipCondition.cs
- SafeSecurityHelper.cs
- SemanticKeyElement.cs
- HostProtectionPermission.cs
- CompilerScope.Storage.cs
- SystemPens.cs
- OleDbDataAdapter.cs
- AsymmetricKeyExchangeFormatter.cs
- CalendarTable.cs
- EdgeModeValidation.cs
- HttpCachePolicy.cs
- TrailingSpaceComparer.cs
- FillBehavior.cs
- SineEase.cs
- BitmapCache.cs
- BinaryObjectWriter.cs
- CircleHotSpot.cs
- PropertyChangedEventManager.cs
- OutputCacheSection.cs
- Interfaces.cs
- AspNetSynchronizationContext.cs
- RectangleGeometry.cs
- QilXmlReader.cs
- Property.cs