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
- XmlTypeAttribute.cs
- Site.cs
- GradientPanel.cs
- StreamUpgradeAcceptor.cs
- TCEAdapterGenerator.cs
- BindingWorker.cs
- RegexCharClass.cs
- panel.cs
- ClientSettingsStore.cs
- VersionedStream.cs
- AdRotatorDesigner.cs
- ItemCheckedEvent.cs
- StrokeNodeOperations.cs
- OptimisticConcurrencyException.cs
- TileBrush.cs
- TrackingStringDictionary.cs
- ToolBarPanel.cs
- DataServiceHost.cs
- TableLayoutPanel.cs
- CodeTypeMember.cs
- BaseTemplateParser.cs
- NativeMethods.cs
- ObjectDataSourceDisposingEventArgs.cs
- NavigationPropertyEmitter.cs
- HybridDictionary.cs
- ObjectDisposedException.cs
- MetadataItem_Static.cs
- ZipQueryOperator.cs
- Token.cs
- OracleCommandBuilder.cs
- SafeProcessHandle.cs
- SoapAttributes.cs
- WindowsPen.cs
- DbQueryCommandTree.cs
- CodeEntryPointMethod.cs
- SimpleWorkerRequest.cs
- Transform3D.cs
- GraphicsContainer.cs
- Debug.cs
- Point3DCollection.cs
- PropertiesTab.cs
- ListenDesigner.cs
- CommandBindingCollection.cs
- WinInetCache.cs
- SqlGenericUtil.cs
- ProfileProvider.cs
- SqlConnectionHelper.cs
- MemberHolder.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- IIS7UserPrincipal.cs
- DbDataAdapter.cs
- Table.cs
- ClientConvert.cs
- PlanCompiler.cs
- TypeInitializationException.cs
- StorageMappingItemCollection.cs
- InternalBufferOverflowException.cs
- LifetimeServices.cs
- TypeLoadException.cs
- Events.cs
- DbDataReader.cs
- DispatcherHooks.cs
- EntityTypeEmitter.cs
- DataGridItem.cs
- ColorConverter.cs
- LocalTransaction.cs
- TemplateBindingExpressionConverter.cs
- SrgsElementList.cs
- StringUtil.cs
- Attributes.cs
- ExcCanonicalXml.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- MobileControlsSection.cs
- DateTimeValueSerializerContext.cs
- DispatcherOperation.cs
- IdentityModelStringsVersion1.cs
- ToolStripSplitStackLayout.cs
- CurrentChangingEventArgs.cs
- ProcessHostMapPath.cs
- HttpContext.cs
- CodeSnippetStatement.cs
- DetailsViewUpdateEventArgs.cs
- HostingEnvironment.cs
- XmlNamespaceManager.cs
- EntityCommandExecutionException.cs
- ProfileSection.cs
- Propagator.JoinPropagator.cs
- TableRowsCollectionEditor.cs
- ClientRuntimeConfig.cs
- Triplet.cs
- LoginCancelEventArgs.cs
- BindingCollection.cs
- SrgsRuleRef.cs
- StatusBarPanelClickEvent.cs
- TimeSpanValidatorAttribute.cs
- MimeTypeMapper.cs
- CodeMemberMethod.cs
- DataSourceView.cs
- StorageComplexPropertyMapping.cs
- PreviewKeyDownEventArgs.cs