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
- MemberHolder.cs
- SoapIncludeAttribute.cs
- BigInt.cs
- XmlDictionaryReaderQuotas.cs
- ToolboxItemWrapper.cs
- SystemColorTracker.cs
- controlskin.cs
- MobileListItem.cs
- PagedDataSource.cs
- PropertyTabAttribute.cs
- BaseUriHelper.cs
- EmptyEnumerator.cs
- ExpandoClass.cs
- Container.cs
- ProxyManager.cs
- TypeConverter.cs
- KeyValueConfigurationCollection.cs
- XamlDesignerSerializationManager.cs
- CodeTypeConstructor.cs
- HttpCapabilitiesSectionHandler.cs
- RightNameExpirationInfoPair.cs
- TypeRefElement.cs
- Bidi.cs
- TraversalRequest.cs
- XPathArrayIterator.cs
- embossbitmapeffect.cs
- CollectionsUtil.cs
- RegexTree.cs
- XmlAttributeOverrides.cs
- ZoomPercentageConverter.cs
- DesignerInterfaces.cs
- MethodBuilder.cs
- SelectionBorderGlyph.cs
- PropertyMapper.cs
- ListViewPagedDataSource.cs
- AvTraceDetails.cs
- SqlCachedBuffer.cs
- ConsoleKeyInfo.cs
- DesignerPerfEventProvider.cs
- ResizeGrip.cs
- NullableIntAverageAggregationOperator.cs
- diagnosticsswitches.cs
- ScrollBarAutomationPeer.cs
- SqlUtil.cs
- LongAverageAggregationOperator.cs
- WindowAutomationPeer.cs
- CancellationHandler.cs
- DataGridHeaderBorder.cs
- DataServiceHostWrapper.cs
- RouteParameter.cs
- SqlBuffer.cs
- TemplateColumn.cs
- MachineKeySection.cs
- HttpWebRequestElement.cs
- CompressedStack.cs
- CultureTable.cs
- CssClassPropertyAttribute.cs
- StructuredProperty.cs
- AnnotationResourceChangedEventArgs.cs
- WindowsEditBoxRange.cs
- DataGridParentRows.cs
- AxisAngleRotation3D.cs
- RepeaterItem.cs
- ImageConverter.cs
- PerCallInstanceContextProvider.cs
- DataSourceCollectionBase.cs
- isolationinterop.cs
- XmlEnumAttribute.cs
- TransformationRules.cs
- SecurityPolicySection.cs
- WebConfigurationManager.cs
- IIS7UserPrincipal.cs
- XmlEnumAttribute.cs
- CodeDirectiveCollection.cs
- TaskScheduler.cs
- NetworkStream.cs
- StringCollectionEditor.cs
- QueryCacheEntry.cs
- MetadataUtilsSmi.cs
- Slider.cs
- RowParagraph.cs
- TextTreeText.cs
- HMACMD5.cs
- XPathNodeList.cs
- ResolveCriteria.cs
- StringValueConverter.cs
- PropertyDescriptor.cs
- HotCommands.cs
- basemetadatamappingvisitor.cs
- RIPEMD160.cs
- RecognitionEventArgs.cs
- GatewayDefinition.cs
- SizeAnimationBase.cs
- BoundsDrawingContextWalker.cs
- NegotiateStream.cs
- DirtyTextRange.cs
- EncoderParameter.cs
- ArrayElementGridEntry.cs
- Normalization.cs
- UrlEncodedParameterWriter.cs