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
- Rect3DConverter.cs
- FixedDocumentPaginator.cs
- ProvideValueServiceProvider.cs
- ListItemParagraph.cs
- Int16.cs
- SystemParameters.cs
- SerializationFieldInfo.cs
- HandlerFactoryWrapper.cs
- ChannelSinkStacks.cs
- Validator.cs
- ErrorHandler.cs
- ZipIOLocalFileDataDescriptor.cs
- DbFunctionCommandTree.cs
- ProjectionPlanCompiler.cs
- DoWorkEventArgs.cs
- ProcessInputEventArgs.cs
- TextRangeBase.cs
- TreeViewImageGenerator.cs
- EntityContainer.cs
- WindowsSysHeader.cs
- StylusButtonCollection.cs
- ProxyOperationRuntime.cs
- ComponentEditorForm.cs
- EasingKeyFrames.cs
- SuppressMessageAttribute.cs
- AxHost.cs
- Main.cs
- RouteData.cs
- DispatcherExceptionEventArgs.cs
- Peer.cs
- TextRunCache.cs
- XamlPointCollectionSerializer.cs
- DefinitionBase.cs
- XmlQueryStaticData.cs
- RectangleGeometry.cs
- SingleResultAttribute.cs
- TextTrailingCharacterEllipsis.cs
- RolePrincipal.cs
- HeaderCollection.cs
- UnknownBitmapEncoder.cs
- InfoCardTraceRecord.cs
- ContainerUIElement3D.cs
- BinaryFormatterWriter.cs
- UnsafeNativeMethods.cs
- ConnectionPool.cs
- TypeSystem.cs
- ExtensionDataReader.cs
- SpeakInfo.cs
- MethodRental.cs
- AttachedPropertyDescriptor.cs
- AuditLog.cs
- CompositeFontFamily.cs
- Composition.cs
- WebPartDisplayMode.cs
- XmlResolver.cs
- SqlNode.cs
- PathData.cs
- ScriptingRoleServiceSection.cs
- XamlSerializerUtil.cs
- Semaphore.cs
- DataErrorValidationRule.cs
- PrintingPermissionAttribute.cs
- StyleConverter.cs
- recordstate.cs
- Query.cs
- DBNull.cs
- ToolStripContentPanel.cs
- AssemblyUtil.cs
- TextEditorCopyPaste.cs
- DataConnectionHelper.cs
- AlternateView.cs
- RuntimeArgumentHandle.cs
- CodeCatchClauseCollection.cs
- MeasureItemEvent.cs
- Models.cs
- ConstraintStruct.cs
- IntAverageAggregationOperator.cs
- FindCriteria.cs
- ZoneLinkButton.cs
- _SslStream.cs
- GridLength.cs
- CommonGetThemePartSize.cs
- ExtractedStateEntry.cs
- HtmlWindow.cs
- SchemaTypeEmitter.cs
- BasicExpandProvider.cs
- ListViewItemEventArgs.cs
- sqlstateclientmanager.cs
- EnvelopedSignatureTransform.cs
- DataViewManagerListItemTypeDescriptor.cs
- SecurityState.cs
- RadioButton.cs
- StringToken.cs
- GridViewPageEventArgs.cs
- SpotLight.cs
- MarkupCompiler.cs
- TableColumn.cs
- GenericEnumConverter.cs
- Classification.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs