Code:
/ FX-1434 / FX-1434 / 1.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
- DataGridViewCellLinkedList.cs
- DllNotFoundException.cs
- SettingsProviderCollection.cs
- Rectangle.cs
- IPGlobalProperties.cs
- BrowserCapabilitiesFactory.cs
- KeySpline.cs
- ModuleElement.cs
- SafeRightsManagementQueryHandle.cs
- shaper.cs
- DockAndAnchorLayout.cs
- BindValidationContext.cs
- ImageAnimator.cs
- Effect.cs
- Application.cs
- DataGridRowEventArgs.cs
- DotExpr.cs
- LinqDataSourceDeleteEventArgs.cs
- SHA512Managed.cs
- FixedTextBuilder.cs
- PeerEndPoint.cs
- InkCanvasAutomationPeer.cs
- ProbeMatchesMessageCD1.cs
- ApplicationBuildProvider.cs
- XamlVector3DCollectionSerializer.cs
- LookupBindingPropertiesAttribute.cs
- IsolatedStorageFileStream.cs
- ListenerSessionConnectionReader.cs
- InvokeMethodDesigner.xaml.cs
- CellTreeNode.cs
- HtmlEmptyTagControlBuilder.cs
- Vector3DCollectionValueSerializer.cs
- UserNameSecurityTokenProvider.cs
- ValueType.cs
- TypeNameConverter.cs
- ReadingWritingEntityEventArgs.cs
- Assembly.cs
- Comparer.cs
- XamlSerializerUtil.cs
- VirtualPathUtility.cs
- EncryptedKey.cs
- ParseHttpDate.cs
- IChannel.cs
- XamlReader.cs
- ProxyAssemblyNotLoadedException.cs
- UpdateTranslator.cs
- CompiledQuery.cs
- ConfigXmlElement.cs
- X509Certificate2.cs
- UndirectedGraph.cs
- SqlInfoMessageEvent.cs
- DesignerActionVerbItem.cs
- OdbcUtils.cs
- EllipticalNodeOperations.cs
- HtmlElementEventArgs.cs
- SplitterPanel.cs
- RowCache.cs
- DataRecordObjectView.cs
- ObjectDisposedException.cs
- ResourceDisplayNameAttribute.cs
- ScriptingWebServicesSectionGroup.cs
- sapiproxy.cs
- Subtract.cs
- GraphicsContext.cs
- AnimationStorage.cs
- Component.cs
- TextSearch.cs
- HandlerWithFactory.cs
- File.cs
- NumericUpDownAcceleration.cs
- XmlWrappingWriter.cs
- DocumentCollection.cs
- BindingCompleteEventArgs.cs
- activationcontext.cs
- ImageList.cs
- OracleRowUpdatedEventArgs.cs
- TextParagraphCache.cs
- GridViewDeleteEventArgs.cs
- TableDetailsRow.cs
- DbConvert.cs
- ImageFormatConverter.cs
- AttributeInfo.cs
- XmlSchemaChoice.cs
- oledbmetadatacollectionnames.cs
- StorageFunctionMapping.cs
- BlockCollection.cs
- LeftCellWrapper.cs
- CodeCommentStatementCollection.cs
- CompilationRelaxations.cs
- CqlErrorHelper.cs
- WinFormsComponentEditor.cs
- CollectionCodeDomSerializer.cs
- CatalogZoneBase.cs
- SingleResultAttribute.cs
- OrCondition.cs
- XmlSerializationGeneratedCode.cs
- XmlRootAttribute.cs
- Vars.cs
- DelegateArgumentValue.cs
- XPathScanner.cs