Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / Filter / ZeroOpNode.cs / 1 / 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceCredentialsSecurityTokenManager.cs
- ConfigurationStrings.cs
- DocumentOrderQuery.cs
- ComponentDesigner.cs
- SourceSwitch.cs
- WebPartConnectionsCancelEventArgs.cs
- ServerValidateEventArgs.cs
- ArrangedElement.cs
- ServicePoint.cs
- GlyphRunDrawing.cs
- DuplicateWaitObjectException.cs
- HttpContext.cs
- CellNormalizer.cs
- XamlSerializerUtil.cs
- SyndicationLink.cs
- ActiveXHost.cs
- CultureSpecificCharacterBufferRange.cs
- ProfileBuildProvider.cs
- KeyManager.cs
- SecurityManager.cs
- RenderTargetBitmap.cs
- XmlValidatingReaderImpl.cs
- GridViewPageEventArgs.cs
- KeyValuePair.cs
- EventManager.cs
- InvalidDataException.cs
- PrintDialog.cs
- XPathNodeHelper.cs
- DataStorage.cs
- Simplifier.cs
- FileDetails.cs
- ToolboxItemImageConverter.cs
- HtmlCalendarAdapter.cs
- PageVisual.cs
- CryptoProvider.cs
- ExceptionHelpers.cs
- MaterializeFromAtom.cs
- CloseCollectionAsyncResult.cs
- ZipIOFileItemStream.cs
- WeakReference.cs
- ElementNotAvailableException.cs
- Rectangle.cs
- ImageKeyConverter.cs
- SMSvcHost.cs
- SystemPens.cs
- StorageInfo.cs
- BlurBitmapEffect.cs
- BinaryKeyIdentifierClause.cs
- ManagementQuery.cs
- AttachedPropertyMethodSelector.cs
- GeneralTransformGroup.cs
- TextClipboardData.cs
- APCustomTypeDescriptor.cs
- Cursor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SmtpFailedRecipientException.cs
- LocalizedNameDescriptionPair.cs
- XamlTreeBuilderBamlRecordWriter.cs
- RijndaelCryptoServiceProvider.cs
- IImplicitResourceProvider.cs
- CursorConverter.cs
- HMACSHA256.cs
- TextMarkerSource.cs
- DbConnectionClosed.cs
- DataGridBoolColumn.cs
- XmlSchemaInclude.cs
- PlaceHolder.cs
- StateItem.cs
- securitycriticaldataClass.cs
- ToolBarButtonClickEvent.cs
- SecurityElement.cs
- ExtendedPropertyCollection.cs
- PeerNameRegistration.cs
- PrimitiveXmlSerializers.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- RepeatButtonAutomationPeer.cs
- XmlCharCheckingWriter.cs
- BufferAllocator.cs
- ObjectItemAttributeAssemblyLoader.cs
- ProgressBar.cs
- DataGridViewColumnCollection.cs
- PointAnimation.cs
- ScrollBar.cs
- FormViewUpdateEventArgs.cs
- OutputCacheProviderCollection.cs
- SRef.cs
- Label.cs
- CanonicalFontFamilyReference.cs
- BaseProcessor.cs
- PartialList.cs
- BlurBitmapEffect.cs
- FtpWebRequest.cs
- XmlSchemaImporter.cs
- StatementContext.cs
- LockRecursionException.cs
- DesignBindingPropertyDescriptor.cs
- TraceLevelHelper.cs
- ToolStripContainer.cs
- NullableFloatSumAggregationOperator.cs