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
- DesignConnectionCollection.cs
- OdbcStatementHandle.cs
- XsltSettings.cs
- Pair.cs
- ErrorWebPart.cs
- HotCommands.cs
- ConnectionInterfaceCollection.cs
- DataSourceXmlClassAttribute.cs
- WebPartCloseVerb.cs
- CaseKeyBox.xaml.cs
- RepeatButtonAutomationPeer.cs
- DataGridViewIntLinkedList.cs
- QueryOperationResponseOfT.cs
- BufferedGenericXmlSecurityToken.cs
- XmlSchemaRedefine.cs
- Peer.cs
- TextTreeRootNode.cs
- MachineKeyConverter.cs
- SQLSingleStorage.cs
- Color.cs
- SequentialWorkflowHeaderFooter.cs
- ManagementScope.cs
- IPEndPointCollection.cs
- PackageRelationshipCollection.cs
- printdlgexmarshaler.cs
- SmtpClient.cs
- FileAuthorizationModule.cs
- DataGridLinkButton.cs
- DataGridViewComboBoxColumnDesigner.cs
- InputScopeNameConverter.cs
- InvokeHandlers.cs
- ScaleTransform3D.cs
- TableItemPatternIdentifiers.cs
- ContentControl.cs
- CachedPathData.cs
- SecurityElement.cs
- OleDbError.cs
- StringPropertyBuilder.cs
- XmlDocument.cs
- ErrorView.xaml.cs
- Condition.cs
- OutOfProcStateClientManager.cs
- EditorReuseAttribute.cs
- EdmToObjectNamespaceMap.cs
- NaturalLanguageHyphenator.cs
- StateBag.cs
- PropertyRecord.cs
- MetadataItem_Static.cs
- Error.cs
- BaseComponentEditor.cs
- RectConverter.cs
- ReadOnlyObservableCollection.cs
- DisplayMemberTemplateSelector.cs
- MatrixTransform.cs
- EventLogLink.cs
- InkSerializer.cs
- DecoderBestFitFallback.cs
- ScrollBar.cs
- BaseCollection.cs
- ConnectionConsumerAttribute.cs
- FullTextBreakpoint.cs
- ListMarkerLine.cs
- DoubleLinkList.cs
- RefreshEventArgs.cs
- BezierSegment.cs
- Floater.cs
- FormViewCommandEventArgs.cs
- ElapsedEventArgs.cs
- WindowsTitleBar.cs
- OleAutBinder.cs
- SortDescriptionCollection.cs
- AmbiguousMatchException.cs
- ClientOperation.cs
- EventListener.cs
- SqlCaseSimplifier.cs
- DynamicDocumentPaginator.cs
- AssemblyCacheEntry.cs
- Decimal.cs
- Propagator.Evaluator.cs
- ScopeElement.cs
- ProgressPage.cs
- BaseTreeIterator.cs
- MSAAWinEventWrap.cs
- ValidationSummary.cs
- ZipIOExtraFieldZip64Element.cs
- ClaimSet.cs
- ETagAttribute.cs
- DbConnectionPoolGroupProviderInfo.cs
- FileSystemWatcher.cs
- ImageSource.cs
- ProviderUtil.cs
- XhtmlBasicValidationSummaryAdapter.cs
- XmlTextReaderImplHelpers.cs
- File.cs
- Identity.cs
- Privilege.cs
- LZCodec.cs
- RouteTable.cs
- ObjectDataSourceEventArgs.cs
- AssociationTypeEmitter.cs