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
- DataControlFieldTypeEditor.cs
- ColumnWidthChangedEvent.cs
- EncryptedPackage.cs
- MarginsConverter.cs
- DesignTimeTemplateParser.cs
- UnsafeMethods.cs
- Block.cs
- ExternalFile.cs
- CalendarDesigner.cs
- SafeThreadHandle.cs
- SafeNativeMethodsMilCoreApi.cs
- PropertyPathWorker.cs
- SimplePropertyEntry.cs
- WebHostScriptMappingsInstallComponent.cs
- Geometry.cs
- ListViewItemMouseHoverEvent.cs
- TranslateTransform.cs
- BuildProvider.cs
- ModuleConfigurationInfo.cs
- GetRecipientRequest.cs
- XsltContext.cs
- DesignerHelpers.cs
- PaperSource.cs
- PeerNearMe.cs
- FontSource.cs
- CodeBlockBuilder.cs
- SpecularMaterial.cs
- SqlException.cs
- Currency.cs
- ContextDataSource.cs
- FirstMatchCodeGroup.cs
- RectangleConverter.cs
- SignatureToken.cs
- Italic.cs
- versioninfo.cs
- OdbcException.cs
- contentDescriptor.cs
- Vector3D.cs
- ValueQuery.cs
- GridView.cs
- __ConsoleStream.cs
- XamlFigureLengthSerializer.cs
- ResizeGrip.cs
- ConfigurationValidatorAttribute.cs
- MenuItemCollection.cs
- KeyGesture.cs
- BitmapEffectState.cs
- Delegate.cs
- DataGridViewCellParsingEventArgs.cs
- Floater.cs
- XmlHierarchicalDataSourceView.cs
- ConcurrencyMode.cs
- StaticFileHandler.cs
- BamlStream.cs
- InvalidWMPVersionException.cs
- QilSortKey.cs
- TrackingLocationCollection.cs
- DbConnectionOptions.cs
- TrackingAnnotationCollection.cs
- ConfigXmlSignificantWhitespace.cs
- ExpressionNode.cs
- CompModSwitches.cs
- VoiceInfo.cs
- DataListComponentEditor.cs
- CrossSiteScriptingValidation.cs
- SQLMoney.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- CompositionTarget.cs
- SharedPersonalizationStateInfo.cs
- DBConnectionString.cs
- QilVisitor.cs
- WebPartHelpVerb.cs
- SecurityKeyIdentifierClause.cs
- System.Data.OracleClient_BID.cs
- DependencyPropertyKind.cs
- TextBoxLine.cs
- WriteableOnDemandStream.cs
- Soap12FormatExtensions.cs
- DropTarget.cs
- TreeNodeCollection.cs
- SqlXml.cs
- Image.cs
- TypeFieldSchema.cs
- SQLInt16.cs
- CodePrimitiveExpression.cs
- BasePropertyDescriptor.cs
- PropertyEntry.cs
- ListenerHandler.cs
- Invariant.cs
- _IPv6Address.cs
- PageCache.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BuildProvider.cs
- ServiceModelSecurityTokenTypes.cs
- TdsValueSetter.cs
- NonBatchDirectoryCompiler.cs
- PersistenceTypeAttribute.cs
- FileIOPermission.cs
- VerticalAlignConverter.cs
- DictionaryChange.cs