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
- IsolatedStorageFile.cs
- PenContext.cs
- InternalSafeNativeMethods.cs
- ProfileSettingsCollection.cs
- SessionStateModule.cs
- RadioButton.cs
- ColumnCollection.cs
- safePerfProviderHandle.cs
- Assign.cs
- CounterNameConverter.cs
- BitmapDownload.cs
- WindowsStartMenu.cs
- FlowDocumentReaderAutomationPeer.cs
- DataError.cs
- XmlCharType.cs
- RepeatButton.cs
- FacetDescription.cs
- GroupBox.cs
- SocketPermission.cs
- CodeAttributeArgumentCollection.cs
- InfoCardRSACryptoProvider.cs
- XhtmlCssHandler.cs
- GridViewEditEventArgs.cs
- UIElementPropertyUndoUnit.cs
- PointValueSerializer.cs
- WebPart.cs
- PersonalizationState.cs
- _NativeSSPI.cs
- DeviceContext.cs
- SimpleBitVector32.cs
- PropertyFilter.cs
- SwitchElementsCollection.cs
- RemotingSurrogateSelector.cs
- CompilationUtil.cs
- httpstaticobjectscollection.cs
- AutomationAttributeInfo.cs
- ILGenerator.cs
- unitconverter.cs
- WindowsTokenRoleProvider.cs
- TargetInvocationException.cs
- SoapCodeExporter.cs
- BindingOperations.cs
- arclist.cs
- SqlTrackingQuery.cs
- VolatileEnlistmentMultiplexing.cs
- ResizeGrip.cs
- TextFragmentEngine.cs
- DbConnectionInternal.cs
- IntPtr.cs
- TdsParserSessionPool.cs
- ValidatingPropertiesEventArgs.cs
- CodeNamespaceCollection.cs
- EncoderParameters.cs
- localization.cs
- ComUdtElementCollection.cs
- DefaultSerializationProviderAttribute.cs
- HandlerBase.cs
- PropertyDescriptorComparer.cs
- PrimitiveSchema.cs
- WebCategoryAttribute.cs
- GradientSpreadMethodValidation.cs
- Graphics.cs
- SoapHeaders.cs
- TemplateControl.cs
- SqlWorkflowInstanceStoreLock.cs
- Localizer.cs
- HierarchicalDataBoundControlAdapter.cs
- ItemCheckEvent.cs
- Vector3DConverter.cs
- MenuItem.cs
- XNodeNavigator.cs
- PatternMatcher.cs
- InstanceStore.cs
- TileBrush.cs
- BooleanFacetDescriptionElement.cs
- WorkerProcess.cs
- StringKeyFrameCollection.cs
- Control.cs
- MiniParameterInfo.cs
- ToolStripLabel.cs
- RectAnimationUsingKeyFrames.cs
- ApplicationId.cs
- DropShadowBitmapEffect.cs
- WebPartAddingEventArgs.cs
- TransformConverter.cs
- OutputCacheModule.cs
- EdmValidator.cs
- DatePickerTextBox.cs
- PerformanceCounterPermission.cs
- WebBrowserEvent.cs
- IntSumAggregationOperator.cs
- recordstate.cs
- GridViewRowCollection.cs
- ReadWriteSpinLock.cs
- EventRecord.cs
- DataSetUtil.cs
- UpdatePanelTrigger.cs
- CompositionCommandSet.cs
- Registry.cs
- ConstructorArgumentAttribute.cs