Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- EmptyControlCollection.cs
- HttpProfileBase.cs
- BindableAttribute.cs
- DocumentGridPage.cs
- XPathBinder.cs
- GroupQuery.cs
- Directory.cs
- D3DImage.cs
- SparseMemoryStream.cs
- VirtualPathData.cs
- NCryptNative.cs
- MarkupProperty.cs
- MembershipValidatePasswordEventArgs.cs
- SafeFileHandle.cs
- Function.cs
- FontSource.cs
- XPathNavigatorReader.cs
- EastAsianLunisolarCalendar.cs
- PrinterSettings.cs
- ReferencedType.cs
- MTConfigUtil.cs
- KeyMatchBuilder.cs
- PathFigureCollectionValueSerializer.cs
- PeerInputChannelListener.cs
- SoapMessage.cs
- SplashScreen.cs
- XmlIgnoreAttribute.cs
- DiscoveryClientElement.cs
- IISMapPath.cs
- MultiViewDesigner.cs
- TrustLevelCollection.cs
- ValueOfAction.cs
- DecimalConverter.cs
- _ConnectStream.cs
- SqlWebEventProvider.cs
- ReadOnlyCollectionBase.cs
- Base64Stream.cs
- XmlSchemaFacet.cs
- TextViewBase.cs
- DirectoryNotFoundException.cs
- DataObject.cs
- iisPickupDirectory.cs
- NativeActivityContext.cs
- ReferencedAssembly.cs
- Binding.cs
- ListenerAdapterBase.cs
- FtpWebResponse.cs
- Descriptor.cs
- VisualStyleElement.cs
- DataSourceHelper.cs
- ListView.cs
- InvalidateEvent.cs
- KeyInfo.cs
- FormsAuthenticationEventArgs.cs
- ProgressBarAutomationPeer.cs
- CommandDevice.cs
- ScriptManagerProxy.cs
- CompareInfo.cs
- FrameworkElementAutomationPeer.cs
- MouseActionValueSerializer.cs
- UnionCodeGroup.cs
- Double.cs
- GenericsInstances.cs
- MappedMetaModel.cs
- MouseActionValueSerializer.cs
- Pkcs7Signer.cs
- DESCryptoServiceProvider.cs
- XmlElementAttribute.cs
- CalendarButton.cs
- WaitingCursor.cs
- ListDictionaryInternal.cs
- EntityContainer.cs
- QuotaThrottle.cs
- SqlDataAdapter.cs
- RawStylusSystemGestureInputReport.cs
- GeometryValueSerializer.cs
- BinaryNode.cs
- FilterException.cs
- ExtendedPropertyCollection.cs
- SqlConnectionPoolProviderInfo.cs
- Transform.cs
- WebPartCatalogCloseVerb.cs
- TaiwanCalendar.cs
- CopyOnWriteList.cs
- MobileControlsSectionHelper.cs
- CopyAction.cs
- TempFiles.cs
- CodeNamespaceImport.cs
- SqlGatherProducedAliases.cs
- RequestDescription.cs
- QueryContinueDragEventArgs.cs
- IPAddressCollection.cs
- AppModelKnownContentFactory.cs
- RequestChannel.cs
- ModelUIElement3D.cs
- GridToolTip.cs
- HtmlLink.cs
- EntityDataSourceContainerNameItem.cs
- StateMachineWorkflow.cs
- XmlSchemaObject.cs