Code:
/ FX-1434 / FX-1434 / 1.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
- SqlDataRecord.cs
- HtmlTable.cs
- FileRecordSequenceHelper.cs
- TextPointer.cs
- DesignTimeTemplateParser.cs
- FixedSOMPageConstructor.cs
- Normalizer.cs
- WindowsSecurityTokenAuthenticator.cs
- XmlAttributeCollection.cs
- ScrollProviderWrapper.cs
- RequestNavigateEventArgs.cs
- DesignerDataParameter.cs
- DBBindings.cs
- LinkButton.cs
- DataSourceDescriptorCollection.cs
- ExpressionTextBoxAutomationPeer.cs
- CompatibleComparer.cs
- entityreference_tresulttype.cs
- ConfigurationProperty.cs
- WebPartCancelEventArgs.cs
- EntityDataReader.cs
- ValidationErrorCollection.cs
- AdapterUtil.cs
- DeclarativeCatalogPart.cs
- SwitchDesigner.xaml.cs
- DependencyPropertyDescriptor.cs
- CultureSpecificCharacterBufferRange.cs
- HttpCachePolicy.cs
- CodeAttributeDeclarationCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- SecurityUtils.cs
- CategoriesDocumentFormatter.cs
- securitycriticaldata.cs
- Transform3DCollection.cs
- PersistenceParticipant.cs
- EdmFunctionAttribute.cs
- FormatException.cs
- TemplateControlParser.cs
- securitycriticaldataformultiplegetandset.cs
- SystemWebSectionGroup.cs
- XmlTypeAttribute.cs
- RegistrySecurity.cs
- ObservableCollection.cs
- BinaryObjectWriter.cs
- DataGridViewAdvancedBorderStyle.cs
- EmbeddedMailObjectsCollection.cs
- SqlCrossApplyToCrossJoin.cs
- WaitHandleCannotBeOpenedException.cs
- Variant.cs
- MessageEncodingBindingElement.cs
- PathGradientBrush.cs
- __Filters.cs
- NameScope.cs
- SwitchAttribute.cs
- ScheduleChanges.cs
- SerializerProvider.cs
- DataProtection.cs
- TypeKeyValue.cs
- RelationshipEndMember.cs
- TableRowCollection.cs
- TimeoutException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataGridViewCellMouseEventArgs.cs
- RtfToXamlReader.cs
- GroupDescription.cs
- ReaderContextStackData.cs
- SchemaCollectionPreprocessor.cs
- ShaderRenderModeValidation.cs
- DisplayMemberTemplateSelector.cs
- CriticalFileToken.cs
- ContentElement.cs
- ListBoxItemWrapperAutomationPeer.cs
- SQLInt16.cs
- _ListenerRequestStream.cs
- SecurityContext.cs
- VirtualDirectoryMapping.cs
- Odbc32.cs
- ApplicationServicesHostFactory.cs
- StateFinalizationDesigner.cs
- HostSecurityManager.cs
- EntityContainerAssociationSetEnd.cs
- ProcessModuleCollection.cs
- FixedFlowMap.cs
- OutOfMemoryException.cs
- AdjustableArrowCap.cs
- EmptyReadOnlyDictionaryInternal.cs
- ListItemCollection.cs
- XmlSchemaSubstitutionGroup.cs
- SoapFormatterSinks.cs
- HttpWebResponse.cs
- TimeSpanSecondsConverter.cs
- MouseActionValueSerializer.cs
- WebException.cs
- XmlUTF8TextWriter.cs
- SamlSubjectStatement.cs
- DayRenderEvent.cs
- SystemTcpConnection.cs
- MenuRenderer.cs
- ActivityExecutionContextCollection.cs
- MimeTypeAttribute.cs