Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / CaseExpr.cs / 1305376 / CaseExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents the Seached Case Expression - CASE WHEN THEN [ELSE] END. /// internal sealed class CaseExpr : Node { private readonly NodeList_whenThenExpr; private readonly Node _elseExpr; /// /// Initializes case expression without else sub-expression. /// /// whenThen expression list internal CaseExpr(NodeListwhenThenExpr) : this(whenThenExpr, null) { } /// /// Initializes case expression with else sub-expression. /// /// whenThen expression list /// else expression internal CaseExpr(NodeListwhenThenExpr, Node elseExpr) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions. /// internal NodeListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression. /// internal Node ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression. /// internal class WhenThenExpr : Node { private readonly Node _whenExpr; private readonly Node _thenExpr; ////// Initializes WhenThen sub-expression. /// /// When expression /// Then expression internal WhenThenExpr(Node whenExpr, Node thenExpr) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression. /// internal Node WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression. /// internal Node ThenExpr { get { return _thenExpr; } } } } // 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
- MemoryStream.cs
- DocumentPaginator.cs
- MediaEntryAttribute.cs
- DecoratedNameAttribute.cs
- IndependentlyAnimatedPropertyMetadata.cs
- StreamWithDictionary.cs
- Switch.cs
- WindowsFormsSynchronizationContext.cs
- PersonalizationProviderCollection.cs
- ParentQuery.cs
- ProfilePropertySettingsCollection.cs
- Transform.cs
- XsltOutput.cs
- OutputCacheSettings.cs
- WmlCommandAdapter.cs
- BufferedStream.cs
- VectorAnimationBase.cs
- ConnectorMovedEventArgs.cs
- GeometryModel3D.cs
- FactoryGenerator.cs
- Formatter.cs
- WebHttpEndpointElement.cs
- XslVisitor.cs
- ControlParameter.cs
- CommandTreeTypeHelper.cs
- ArrayItemReference.cs
- UInt32Storage.cs
- SoapIncludeAttribute.cs
- ValidationEventArgs.cs
- PointAnimation.cs
- GridItemCollection.cs
- PathGradientBrush.cs
- ModelFactory.cs
- TextRenderer.cs
- AstNode.cs
- DbFunctionCommandTree.cs
- PriorityRange.cs
- ManagementOptions.cs
- InputScopeAttribute.cs
- TransformerConfigurationWizardBase.cs
- UnicodeEncoding.cs
- ServerIdentity.cs
- EpmContentDeSerializerBase.cs
- NativeMethods.cs
- HtmlInputText.cs
- HostVisual.cs
- UpDownBaseDesigner.cs
- KeyNotFoundException.cs
- elementinformation.cs
- ConfigXmlElement.cs
- PlaceHolder.cs
- XmlElement.cs
- TransformProviderWrapper.cs
- CodeSnippetExpression.cs
- BasicAsyncResult.cs
- TextTrailingCharacterEllipsis.cs
- Dispatcher.cs
- Interlocked.cs
- VirtualizedContainerService.cs
- DataTableReaderListener.cs
- RuntimeWrappedException.cs
- EdmRelationshipRoleAttribute.cs
- ResourcesBuildProvider.cs
- PropertyDescriptorGridEntry.cs
- ProfileGroupSettings.cs
- FontUnit.cs
- ApplicationDirectory.cs
- MinMaxParagraphWidth.cs
- AxisAngleRotation3D.cs
- BindingsSection.cs
- InstancePersistenceEvent.cs
- FieldNameLookup.cs
- ItemCheckedEvent.cs
- DLinqAssociationProvider.cs
- AssemblyFilter.cs
- QueryContinueDragEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- SafeRightsManagementQueryHandle.cs
- VoiceChangeEventArgs.cs
- ButtonBaseAdapter.cs
- SqlDataSourceConfigureFilterForm.cs
- PointAnimationUsingPath.cs
- DynamicValueConverter.cs
- ResourceContainer.cs
- ForeignKeyConstraint.cs
- ContentPlaceHolder.cs
- BitmapEffectDrawingContextState.cs
- BuildProvider.cs
- MarginCollapsingState.cs
- XmlNodeReader.cs
- HtmlListAdapter.cs
- ParseNumbers.cs
- MeshGeometry3D.cs
- XmlJsonReader.cs
- AuthorizationContext.cs
- DirectoryInfo.cs
- DllNotFoundException.cs
- ToolStripButton.cs
- PageHandlerFactory.cs
- DbBuffer.cs