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
- PnrpPeerResolverElement.cs
- SqlAggregateChecker.cs
- RegexMatch.cs
- ConfigsHelper.cs
- DependencyObjectType.cs
- StatusCommandUI.cs
- AutoResetEvent.cs
- CodeLinePragma.cs
- ThreadPoolTaskScheduler.cs
- ReadOnlyPropertyMetadata.cs
- XDRSchema.cs
- WebRequestModulesSection.cs
- ContentDisposition.cs
- ListViewItemSelectionChangedEvent.cs
- ObjectCloneHelper.cs
- CellTreeSimplifier.cs
- OdbcParameterCollection.cs
- bindurihelper.cs
- sqlnorm.cs
- Variable.cs
- DbParameterHelper.cs
- Roles.cs
- SystemIcmpV6Statistics.cs
- OLEDB_Util.cs
- glyphs.cs
- DescriptionAttribute.cs
- TimersDescriptionAttribute.cs
- XmlComment.cs
- MultiPropertyDescriptorGridEntry.cs
- FactoryGenerator.cs
- Vector3DAnimationBase.cs
- VersionPair.cs
- CellParagraph.cs
- TrackingQueryElement.cs
- WebEventTraceProvider.cs
- Pair.cs
- COM2ExtendedBrowsingHandler.cs
- KnownBoxes.cs
- DynamicScriptObject.cs
- UnsafeNativeMethodsPenimc.cs
- QilLiteral.cs
- NativeMethods.cs
- AdCreatedEventArgs.cs
- OleDbInfoMessageEvent.cs
- SoapMessage.cs
- WindowsGraphics2.cs
- NumericUpDown.cs
- TextSegment.cs
- COSERVERINFO.cs
- SqlNodeAnnotation.cs
- NavigationHelper.cs
- ZoneIdentityPermission.cs
- MediaCommands.cs
- SqlMultiplexer.cs
- HttpResponse.cs
- WindowsServiceCredential.cs
- ZoomPercentageConverter.cs
- DiagnosticsConfiguration.cs
- assertwrapper.cs
- OracleParameterBinding.cs
- WebPartZoneBase.cs
- Comparer.cs
- StructuredTypeEmitter.cs
- ItemCheckEvent.cs
- NumericUpDown.cs
- XmlCDATASection.cs
- FontSizeConverter.cs
- clipboard.cs
- COAUTHIDENTITY.cs
- FontWeightConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- ISessionStateStore.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FormsAuthenticationCredentials.cs
- FileLoadException.cs
- OracleEncoding.cs
- control.ime.cs
- EncodingNLS.cs
- ProtocolsConfiguration.cs
- RecognizeCompletedEventArgs.cs
- Int32Storage.cs
- ConnectionInterfaceCollection.cs
- DetailsViewRowCollection.cs
- CleanUpVirtualizedItemEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- _RequestCacheProtocol.cs
- ObjectAnimationBase.cs
- Domain.cs
- BulletChrome.cs
- TraceContextEventArgs.cs
- PersonalizationStateInfo.cs
- ParameterModifier.cs
- RemotingConfiguration.cs
- TabPageDesigner.cs
- formatter.cs
- MultiplexingDispatchMessageFormatter.cs
- CommandBindingCollection.cs
- TemplatePagerField.cs
- WebServiceErrorEvent.cs
- DateTimeEditor.cs