Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Filter / ZeroOpNode.cs / 1305376 / ZeroOpNode.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.Collections.Generic; using System.Diagnostics; internal sealed class ZeroOpNode : ExpressionNode { internal readonly int op; internal const int zop_True = 1; internal const int zop_False = 0; internal const int zop_Null = -1; internal ZeroOpNode(int op) : base((DataTable)null) { this.op = op; Debug.Assert(op == Operators.True || op == Operators.False || op == Operators.Null, "Invalid zero-op"); } internal override void Bind(DataTable table, Listlist) { } internal override object Eval() { switch (op) { case Operators.True: return true; case Operators.False: return false; case Operators.Null: return DBNull.Value; default: Debug.Assert(op == Operators.True || op == Operators.False || op == Operators.Null, "Invalid zero-op"); return DBNull.Value; } } internal override object Eval(DataRow row, DataRowVersion version) { return Eval(); } internal override object Eval(int[] recordNos) { return Eval(); } internal override bool IsConstant() { return true; } internal override bool IsTableConstant() { return true; } internal override bool HasLocalAggregate() { return false; } internal override bool HasRemoteAggregate() { return false; } internal override ExpressionNode Optimize() { return this; } } } // 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
- XmlAutoDetectWriter.cs
- DodSequenceMerge.cs
- CodeDOMProvider.cs
- ExtensionQuery.cs
- DesignerProperties.cs
- PrintPreviewGraphics.cs
- Int64AnimationUsingKeyFrames.cs
- FileInfo.cs
- AtomServiceDocumentSerializer.cs
- OleDbFactory.cs
- GeneralTransform2DTo3DTo2D.cs
- RangeValidator.cs
- SqlInternalConnection.cs
- XXXInfos.cs
- UnknownBitmapDecoder.cs
- PropertiesTab.cs
- TableRow.cs
- ZipIORawDataFileBlock.cs
- AttachedPropertyMethodSelector.cs
- LayoutTable.cs
- ValidationErrorCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PriorityRange.cs
- ValidatorUtils.cs
- IteratorDescriptor.cs
- Command.cs
- DataGridViewSelectedColumnCollection.cs
- IntranetCredentialPolicy.cs
- Opcode.cs
- ReadOnlyNameValueCollection.cs
- NameObjectCollectionBase.cs
- CustomTypeDescriptor.cs
- NativeMethodsCLR.cs
- SoapAttributeOverrides.cs
- MostlySingletonList.cs
- unsafeIndexingFilterStream.cs
- SelectionItemProviderWrapper.cs
- ObjectStateFormatter.cs
- InternalConfigConfigurationFactory.cs
- BuildProvider.cs
- SmiEventSink_DeferedProcessing.cs
- TypedReference.cs
- NumberAction.cs
- DebugHandleTracker.cs
- MapPathBasedVirtualPathProvider.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- Attributes.cs
- MobileControlPersister.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- BrowserTree.cs
- ValidateNames.cs
- ResourceDescriptionAttribute.cs
- OleDbEnumerator.cs
- ListViewItemSelectionChangedEvent.cs
- XmlILStorageConverter.cs
- XmlTextReaderImplHelpers.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- PeerContact.cs
- DataColumn.cs
- PersianCalendar.cs
- StylusTip.cs
- RootProfilePropertySettingsCollection.cs
- ValidationResult.cs
- BulletDecorator.cs
- ClientConfigurationHost.cs
- RemoteArgument.cs
- FontSource.cs
- Transform.cs
- NetTcpBindingCollectionElement.cs
- BrowserCapabilitiesFactoryBase.cs
- isolationinterop.cs
- ElementsClipboardData.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HtmlTextArea.cs
- SrgsRuleRef.cs
- CompilerState.cs
- TheQuery.cs
- HandledEventArgs.cs
- ProviderConnectionPointCollection.cs
- EmptyEnumerator.cs
- SqlDataSourceView.cs
- HttpRuntime.cs
- IntSecurity.cs
- CellCreator.cs
- RequiredFieldValidator.cs
- Condition.cs
- DataListItemCollection.cs
- SelectedGridItemChangedEvent.cs
- TableRow.cs
- TypographyProperties.cs
- URLAttribute.cs
- KeyInterop.cs
- TimerElapsedEvenArgs.cs
- DbProviderFactories.cs
- DocumentGrid.cs
- PriorityQueue.cs
- UpdatableGenericsFeature.cs
- FontCacheLogic.cs
- Sql8ConformanceChecker.cs
- ColumnTypeConverter.cs