Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / CaseExpr.cs / 1 / CaseExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { 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 : Expr { private ExprList_whenThenExpr; private Expr _elseExpr; /// /// Used to contruct case expression without else sub-expression /// /// whenThen expression list internal CaseExpr( ExprListwhenThenExpr ) : this(whenThenExpr, null) { } /// /// Used to contruct case expression with else sub-expression /// /// whenThen expression list /// else expression internal CaseExpr( ExprListwhenThenExpr, Expr elseExpr ) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions /// internal ExprListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression /// internal Expr ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression /// internal class WhenThenExpr : Expr { private Expr _whenExpr; private Expr _thenExpr; ////// Initializes WhenThen sub-expression /// /// When expression /// Then expression internal WhenThenExpr( Expr whenExpr, Expr thenExpr ) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression /// internal Expr WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression /// internal Expr ThenExpr { get { return _thenExpr; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { 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 : Expr { private ExprList_whenThenExpr; private Expr _elseExpr; /// /// Used to contruct case expression without else sub-expression /// /// whenThen expression list internal CaseExpr( ExprListwhenThenExpr ) : this(whenThenExpr, null) { } /// /// Used to contruct case expression with else sub-expression /// /// whenThen expression list /// else expression internal CaseExpr( ExprListwhenThenExpr, Expr elseExpr ) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions /// internal ExprListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression /// internal Expr ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression /// internal class WhenThenExpr : Expr { private Expr _whenExpr; private Expr _thenExpr; ////// Initializes WhenThen sub-expression /// /// When expression /// Then expression internal WhenThenExpr( Expr whenExpr, Expr thenExpr ) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression /// internal Expr WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression /// internal Expr 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
- RepeaterItemEventArgs.cs
- XmlSerializerVersionAttribute.cs
- DateTimeUtil.cs
- FusionWrap.cs
- TransformedBitmap.cs
- WorkflowEnvironment.cs
- Transactions.cs
- TdsParser.cs
- XmlBindingWorker.cs
- ProcessModelSection.cs
- cookiecontainer.cs
- CorruptStoreException.cs
- XmlNullResolver.cs
- StackBuilderSink.cs
- WmlCommandAdapter.cs
- SendActivityValidator.cs
- FixedPageProcessor.cs
- EmissiveMaterial.cs
- ProxyFragment.cs
- VirtualPathUtility.cs
- SynchronousReceiveBehavior.cs
- HtmlTable.cs
- DbCommandDefinition.cs
- SrgsSubset.cs
- SiteMapNodeItem.cs
- SelectionPattern.cs
- Convert.cs
- ProcessExitedException.cs
- RowCache.cs
- ServerValidateEventArgs.cs
- HashAlgorithm.cs
- WebServiceResponse.cs
- DBConnectionString.cs
- OleDbRowUpdatedEvent.cs
- PasswordBox.cs
- SR.cs
- RuleSettings.cs
- NominalTypeEliminator.cs
- ScriptingSectionGroup.cs
- TimeManager.cs
- PictureBox.cs
- HMACSHA512.cs
- ContainerUIElement3D.cs
- EntityDataReader.cs
- StaticSiteMapProvider.cs
- ContentPropertyAttribute.cs
- NetPipeSectionData.cs
- SqlConnectionPoolGroupProviderInfo.cs
- OracleCommand.cs
- LifetimeManager.cs
- Crc32Helper.cs
- ReferenceConverter.cs
- MLangCodePageEncoding.cs
- Context.cs
- TypeConstant.cs
- ServiceNotStartedException.cs
- Odbc32.cs
- CollectionContainer.cs
- WindowsPrincipal.cs
- BinHexDecoder.cs
- ScrollChangedEventArgs.cs
- AuthenticateEventArgs.cs
- AccessText.cs
- FileUtil.cs
- MonitoringDescriptionAttribute.cs
- SessionStateModule.cs
- PrimarySelectionGlyph.cs
- EntityTypeEmitter.cs
- Registry.cs
- Stacktrace.cs
- PriorityItem.cs
- WindowsNonControl.cs
- HwndSourceParameters.cs
- AsymmetricSecurityProtocolFactory.cs
- TableParagraph.cs
- TableCell.cs
- SmiSettersStream.cs
- PointLightBase.cs
- WindowsRichEditRange.cs
- SurrogateEncoder.cs
- RawAppCommandInputReport.cs
- cookiecollection.cs
- formatstringdialog.cs
- NotifyInputEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- UseAttributeSetsAction.cs
- newinstructionaction.cs
- PropertyNames.cs
- ControlIdConverter.cs
- HighContrastHelper.cs
- NativeStructs.cs
- MultiBindingExpression.cs
- EntityModelBuildProvider.cs
- StickyNoteHelper.cs
- CacheMemory.cs
- XmlSchemas.cs
- MustUnderstandBehavior.cs
- CompModSwitches.cs
- CommandLibraryHelper.cs
- MaskedTextProvider.cs