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
- AutoGeneratedField.cs
- Viewport2DVisual3D.cs
- ScriptReference.cs
- TypeExtensionSerializer.cs
- EventTrigger.cs
- AbsoluteQuery.cs
- MaterialGroup.cs
- QilCloneVisitor.cs
- TableProvider.cs
- ThemeableAttribute.cs
- ParallelEnumerableWrapper.cs
- SerializableAttribute.cs
- BufferBuilder.cs
- DetailsView.cs
- SurrogateEncoder.cs
- RequiredFieldValidator.cs
- WebRequest.cs
- TraceContext.cs
- HotSpot.cs
- TextCompositionEventArgs.cs
- AnonymousIdentificationSection.cs
- InkSerializer.cs
- _NtlmClient.cs
- FixUpCollection.cs
- TextRangeEdit.cs
- PlainXmlSerializer.cs
- Utils.cs
- LineGeometry.cs
- DispatcherHookEventArgs.cs
- View.cs
- ForwardPositionQuery.cs
- DbTransaction.cs
- BookmarkNameHelper.cs
- LongTypeConverter.cs
- FixedSOMElement.cs
- VirtualizingStackPanel.cs
- XmlProcessingInstruction.cs
- PeerCollaboration.cs
- AmbientLight.cs
- WebPartConnectionsConnectVerb.cs
- ConfigXmlComment.cs
- SqlRemoveConstantOrderBy.cs
- _SingleItemRequestCache.cs
- Preprocessor.cs
- Vector3DIndependentAnimationStorage.cs
- ToolStripItemCollection.cs
- AvTrace.cs
- WorkflowWebService.cs
- PlaceHolder.cs
- TypeToken.cs
- SQLGuidStorage.cs
- SynchronizationLockException.cs
- ProxyFragment.cs
- Int32RectValueSerializer.cs
- FormsAuthenticationModule.cs
- StrongNameUtility.cs
- _SSPISessionCache.cs
- ContextProperty.cs
- WindowsFormsHostAutomationPeer.cs
- ProvidersHelper.cs
- GetPageCompletedEventArgs.cs
- TypeReference.cs
- AuthorizationRule.cs
- WindowsListViewItemStartMenu.cs
- TransactionInformation.cs
- PointCollection.cs
- NavigatingCancelEventArgs.cs
- ReachFixedPageSerializerAsync.cs
- ToolboxBitmapAttribute.cs
- ByteFacetDescriptionElement.cs
- NonDualMessageSecurityOverHttpElement.cs
- DataGridViewSortCompareEventArgs.cs
- TimeSpanValidator.cs
- RealizationContext.cs
- XmlILOptimizerVisitor.cs
- SystemColors.cs
- TimeSpanParse.cs
- MembershipValidatePasswordEventArgs.cs
- DesignerDataView.cs
- NamespaceMapping.cs
- DetailsViewUpdateEventArgs.cs
- ServiceHostingEnvironment.cs
- EFDataModelProvider.cs
- SmiSettersStream.cs
- SemanticKeyElement.cs
- ControlParameter.cs
- SystemPens.cs
- Stream.cs
- CharStorage.cs
- JapaneseLunisolarCalendar.cs
- BCLDebug.cs
- CannotUnloadAppDomainException.cs
- SymDocumentType.cs
- TileModeValidation.cs
- EventEntry.cs
- Transform3D.cs
- DataObjectAttribute.cs
- _ListenerRequestStream.cs
- FixedSOMContainer.cs
- _LazyAsyncResult.cs