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
- MatrixTransform.cs
- CodeParameterDeclarationExpression.cs
- QueryOptionExpression.cs
- EndpointAddressElementBase.cs
- WMIGenerator.cs
- UiaCoreTypesApi.cs
- BezierSegment.cs
- RemoteWebConfigurationHostStream.cs
- HtmlTableCell.cs
- UnsafeNativeMethodsPenimc.cs
- Relationship.cs
- PriorityBindingExpression.cs
- ProfileService.cs
- ChannelBinding.cs
- SiblingIterators.cs
- ClientCultureInfo.cs
- PauseStoryboard.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- PointLightBase.cs
- XmlNamespaceDeclarationsAttribute.cs
- ReflectionPermission.cs
- XmlAttribute.cs
- SplitterCancelEvent.cs
- ControlPaint.cs
- FieldToken.cs
- StyleXamlTreeBuilder.cs
- DeploymentExceptionMapper.cs
- XPathDocumentIterator.cs
- MasterPageBuildProvider.cs
- XPathNavigator.cs
- CryptoHandle.cs
- ApplicationSecurityManager.cs
- ClientOptions.cs
- AuthenticationService.cs
- SqlClientWrapperSmiStream.cs
- documentsequencetextpointer.cs
- ProfessionalColorTable.cs
- SqlEnums.cs
- StorageFunctionMapping.cs
- Component.cs
- ExpressionSelection.cs
- DriveNotFoundException.cs
- _AutoWebProxyScriptHelper.cs
- MasterPageCodeDomTreeGenerator.cs
- ClientConfigPaths.cs
- SqlBuilder.cs
- MetadataArtifactLoaderResource.cs
- XMLSyntaxException.cs
- WindowsImpersonationContext.cs
- SspiSafeHandles.cs
- GenericRootAutomationPeer.cs
- ContravarianceAdapter.cs
- SqlWorkflowInstanceStore.cs
- ConditionChanges.cs
- COM2TypeInfoProcessor.cs
- SortDescription.cs
- SchemaComplexType.cs
- DirtyTextRange.cs
- ElementInit.cs
- ViewGenerator.cs
- StatusBarItemAutomationPeer.cs
- OdbcConnectionStringbuilder.cs
- EndpointBehaviorElement.cs
- FocusWithinProperty.cs
- Single.cs
- SecurityTokenReferenceStyle.cs
- OleDbRowUpdatedEvent.cs
- HttpStreamFormatter.cs
- ForEach.cs
- HostingEnvironmentWrapper.cs
- GridViewCellAutomationPeer.cs
- TriggerBase.cs
- SessionStateContainer.cs
- DesignerTextViewAdapter.cs
- RegexCode.cs
- PenCursorManager.cs
- SiteMapNodeItem.cs
- HtmlTableCellCollection.cs
- Errors.cs
- Command.cs
- CharConverter.cs
- LinkUtilities.cs
- JoinElimination.cs
- NetworkInterface.cs
- SendMailErrorEventArgs.cs
- FormViewDeletedEventArgs.cs
- DiagnosticTraceSchemas.cs
- HitTestParameters3D.cs
- CallbackTimeoutsElement.cs
- ExpressionBindingCollection.cs
- HostingEnvironmentException.cs
- IsolatedStorageException.cs
- XsdDataContractExporter.cs
- SettingsSavedEventArgs.cs
- DataControlField.cs
- AttributeQuery.cs
- LocatorBase.cs
- HttpStaticObjectsCollectionBase.cs
- ThumbButtonInfoCollection.cs
- StateDesigner.TransitionInfo.cs