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
- ClientRolePrincipal.cs
- FileRegion.cs
- OletxDependentTransaction.cs
- updateconfighost.cs
- BlurEffect.cs
- TextRunCacheImp.cs
- IxmlLineInfo.cs
- DynamicResourceExtension.cs
- SignatureHelper.cs
- FloaterBaseParagraph.cs
- UnmanagedMarshal.cs
- FormConverter.cs
- ParameterBuilder.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- GCHandleCookieTable.cs
- Walker.cs
- EqualityComparer.cs
- InputGestureCollection.cs
- CollectionChangeEventArgs.cs
- RangeExpression.cs
- MaskDesignerDialog.cs
- XmlDocumentSerializer.cs
- ObjectNotFoundException.cs
- HtmlInputHidden.cs
- SQLByteStorage.cs
- XmlCharCheckingWriter.cs
- ButtonBaseDesigner.cs
- SimpleExpression.cs
- FontFamilyIdentifier.cs
- ListViewHitTestInfo.cs
- loginstatus.cs
- ConfigXmlReader.cs
- ByeOperationAsyncResult.cs
- TdsParserSessionPool.cs
- _UriSyntax.cs
- ParameterCollectionEditor.cs
- SvcMapFileSerializer.cs
- DataGridViewCellMouseEventArgs.cs
- BuildProviderCollection.cs
- ConfigurationManagerInternal.cs
- BindableTemplateBuilder.cs
- LinkedResource.cs
- EventlogProvider.cs
- PropertyEmitterBase.cs
- CompModHelpers.cs
- ConstructorExpr.cs
- EdmComplexPropertyAttribute.cs
- OfTypeExpression.cs
- TextDecorationUnitValidation.cs
- PropertyMapper.cs
- UInt64.cs
- DbResourceAllocator.cs
- QueryExpression.cs
- BidOverLoads.cs
- ErasingStroke.cs
- ImportContext.cs
- DrawingGroupDrawingContext.cs
- HtmlPhoneCallAdapter.cs
- hresults.cs
- ByteStack.cs
- GenericEnumerator.cs
- IRCollection.cs
- SystemFonts.cs
- TextSelectionProcessor.cs
- HostUtils.cs
- OdbcUtils.cs
- IntegerValidatorAttribute.cs
- TemplateComponentConnector.cs
- UniqueID.cs
- SafeRightsManagementQueryHandle.cs
- ItemCheckEvent.cs
- ProcessModuleDesigner.cs
- ListItemDetailViewAttribute.cs
- TCEAdapterGenerator.cs
- ViewKeyConstraint.cs
- WebPageTraceListener.cs
- SmiContextFactory.cs
- CatalogPart.cs
- DataGridViewAddColumnDialog.cs
- DataGridCommandEventArgs.cs
- typedescriptorpermission.cs
- DependencyPropertyKey.cs
- SchemaNames.cs
- GeometryCollection.cs
- DataControlFieldHeaderCell.cs
- HTMLTextWriter.cs
- MaskedTextProvider.cs
- DataGridViewIntLinkedList.cs
- CommonObjectSecurity.cs
- panel.cs
- EnumerableRowCollection.cs
- AttributeCallbackBuilder.cs
- Bits.cs
- DnsEndPoint.cs
- Propagator.JoinPropagator.cs
- TcpSocketManager.cs
- MulticastNotSupportedException.cs
- Quaternion.cs
- AuthenticationService.cs
- BaseTreeIterator.cs