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
- TextEditorTables.cs
- CommandDevice.cs
- DotExpr.cs
- AlternateViewCollection.cs
- ChannelManager.cs
- ContainerCodeDomSerializer.cs
- Overlapped.cs
- StreamingContext.cs
- SessionStateItemCollection.cs
- LayoutTable.cs
- TextBoxAutomationPeer.cs
- Int32CAMarshaler.cs
- IImplicitResourceProvider.cs
- TextModifier.cs
- D3DImage.cs
- _ConnectionGroup.cs
- SoapCodeExporter.cs
- Overlapped.cs
- Pkcs7Recipient.cs
- SmtpTransport.cs
- sitestring.cs
- NativeMethods.cs
- MissingManifestResourceException.cs
- XmlSchemaSimpleContentExtension.cs
- Variable.cs
- TreeNode.cs
- InvariantComparer.cs
- DispatcherTimer.cs
- CodeMethodInvokeExpression.cs
- Geometry.cs
- DataServiceStreamProviderWrapper.cs
- EdmRelationshipRoleAttribute.cs
- SocketSettings.cs
- IDReferencePropertyAttribute.cs
- NamedPermissionSet.cs
- CompatibleIComparer.cs
- GACMembershipCondition.cs
- Util.cs
- InputProcessorProfiles.cs
- ResourceProviderFactory.cs
- ThemeConfigurationDialog.cs
- dtdvalidator.cs
- PrintDocument.cs
- Tool.cs
- BitConverter.cs
- Soap11ServerProtocol.cs
- WebPartZoneBase.cs
- XmlNodeReader.cs
- IxmlLineInfo.cs
- Baml2006ReaderContext.cs
- VersionedStream.cs
- ToolStripSeparator.cs
- GuidelineCollection.cs
- FormsAuthenticationUserCollection.cs
- ToolStripEditorManager.cs
- HtmlInputReset.cs
- entityreference_tresulttype.cs
- FileAuthorizationModule.cs
- XPathNodePointer.cs
- UserControlDesigner.cs
- ADMembershipUser.cs
- UrlAuthFailedErrorFormatter.cs
- SqlInternalConnectionTds.cs
- CompiledXpathExpr.cs
- AppDomainManager.cs
- EntityException.cs
- AccessedThroughPropertyAttribute.cs
- RelatedView.cs
- BaseCollection.cs
- TokenBasedSet.cs
- DataContractSerializerOperationFormatter.cs
- TypedElement.cs
- ValuePattern.cs
- NamedElement.cs
- RoleManagerEventArgs.cs
- ParamArrayAttribute.cs
- WebSysDisplayNameAttribute.cs
- CompilerWrapper.cs
- WebEvents.cs
- PhysicalOps.cs
- DataReaderContainer.cs
- List.cs
- FlowDocumentScrollViewer.cs
- CompiledQueryCacheKey.cs
- _RequestCacheProtocol.cs
- PropertyGridCommands.cs
- DragDeltaEventArgs.cs
- MailAddressParser.cs
- DataSourceCollectionBase.cs
- PasswordDeriveBytes.cs
- WorkflowOperationFault.cs
- ItemMap.cs
- PageContent.cs
- ListViewCommandEventArgs.cs
- GridViewCancelEditEventArgs.cs
- CheckBoxFlatAdapter.cs
- Vector3DKeyFrameCollection.cs
- LineInfo.cs
- ObjectConverter.cs
- CheckBoxRenderer.cs