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
- ProfileSettingsCollection.cs
- SqlDataSource.cs
- KeyNotFoundException.cs
- DataGrid.cs
- HyperlinkAutomationPeer.cs
- LinqDataSourceEditData.cs
- ArgumentValidation.cs
- InternalConfigRoot.cs
- IsolatedStorageFilePermission.cs
- ClientRuntimeConfig.cs
- LayoutEditorPart.cs
- TabRenderer.cs
- EntityDataSourceDesigner.cs
- ApplyImportsAction.cs
- SafeRightsManagementQueryHandle.cs
- ConfigurationSection.cs
- TypeGenericEnumerableViewSchema.cs
- HashAlgorithm.cs
- WindowInteropHelper.cs
- ContentTextAutomationPeer.cs
- RadioButtonRenderer.cs
- IndexedString.cs
- DateTimeUtil.cs
- SwitchExpression.cs
- Literal.cs
- RuleSettingsCollection.cs
- StatusBarItemAutomationPeer.cs
- WS2007HttpBinding.cs
- URLAttribute.cs
- Propagator.cs
- FixedStringLookup.cs
- XmlNodeChangedEventManager.cs
- HttpCacheVaryByContentEncodings.cs
- indexingfiltermarshaler.cs
- TemplateControlParser.cs
- ZoomingMessageFilter.cs
- recordstatescratchpad.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Point3DIndependentAnimationStorage.cs
- Convert.cs
- IEnumerable.cs
- DefaultSection.cs
- BCLDebug.cs
- XmlCharCheckingWriter.cs
- ComponentFactoryHelpers.cs
- MenuEventArgs.cs
- LiteralLink.cs
- ImportCatalogPart.cs
- UrlPath.cs
- CustomPopupPlacement.cs
- NewArrayExpression.cs
- StyleXamlTreeBuilder.cs
- DispatcherHooks.cs
- ImageSourceValueSerializer.cs
- TimelineClockCollection.cs
- HostSecurityManager.cs
- ToolBarOverflowPanel.cs
- SchemaAttDef.cs
- RewritingProcessor.cs
- AutomationIdentifierGuids.cs
- QueryAccessibilityHelpEvent.cs
- jithelpers.cs
- UserControlParser.cs
- ExtensionFile.cs
- ChildrenQuery.cs
- PolyQuadraticBezierSegment.cs
- CacheSection.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- HttpFileCollection.cs
- UnsettableComboBox.cs
- AppDomainGrammarProxy.cs
- SystemIPAddressInformation.cs
- XamlPointCollectionSerializer.cs
- SoapFormatExtensions.cs
- WmfPlaceableFileHeader.cs
- SchemaCollectionCompiler.cs
- CommandSet.cs
- NameScopePropertyAttribute.cs
- UserNamePasswordClientCredential.cs
- RootBuilder.cs
- CellQuery.cs
- EventSinkHelperWriter.cs
- TraceInternal.cs
- RTTrackingProfile.cs
- Interlocked.cs
- StrongNameKeyPair.cs
- SqlUdtInfo.cs
- FilterableAttribute.cs
- MembershipUser.cs
- WebHeaderCollection.cs
- CapabilitiesSection.cs
- UidPropertyAttribute.cs
- ASCIIEncoding.cs
- MaskDescriptors.cs
- OracleSqlParser.cs
- LoginName.cs
- PageStatePersister.cs
- ReachFixedPageSerializer.cs
- x509utils.cs
- RuntimeArgumentHandle.cs