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
- UnknownWrapper.cs
- TreeNodeBindingDepthConverter.cs
- PropertyGridCommands.cs
- CubicEase.cs
- SqlCrossApplyToCrossJoin.cs
- ResXResourceWriter.cs
- XPathNavigatorException.cs
- SymbolMethod.cs
- TreeNodeStyleCollection.cs
- ChannelSinkStacks.cs
- ColorBlend.cs
- HeaderUtility.cs
- InputLanguageCollection.cs
- PathBox.cs
- WmlLabelAdapter.cs
- ScrollChangedEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DataGridViewCellMouseEventArgs.cs
- XmlSerializer.cs
- ButtonStandardAdapter.cs
- RelationshipEntry.cs
- AutomationPropertyInfo.cs
- PermissionSetEnumerator.cs
- DoubleLink.cs
- PolicyManager.cs
- StorageConditionPropertyMapping.cs
- SqlDataSource.cs
- ImpersonationContext.cs
- ServiceModelInstallComponent.cs
- WebPartZoneCollection.cs
- ToolboxBitmapAttribute.cs
- WebPartConnectionsCloseVerb.cs
- CommandValueSerializer.cs
- SqlParameterizer.cs
- InputEventArgs.cs
- GradientSpreadMethodValidation.cs
- FileStream.cs
- PriorityChain.cs
- DbParameterHelper.cs
- WebConfigurationManager.cs
- InvalidEnumArgumentException.cs
- HtmlElementErrorEventArgs.cs
- OleDbRowUpdatingEvent.cs
- ConsumerConnectionPoint.cs
- GroupBoxRenderer.cs
- LinkButton.cs
- DesignerForm.cs
- TextEditorTables.cs
- SecurityResources.cs
- BitmapDownload.cs
- DbSourceParameterCollection.cs
- TextParagraphProperties.cs
- JapaneseLunisolarCalendar.cs
- ConstNode.cs
- TemplateControlParser.cs
- MetabaseSettings.cs
- IncrementalHitTester.cs
- ActivityTypeCodeDomSerializer.cs
- Walker.cs
- NominalTypeEliminator.cs
- OperationCanceledException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Point3DAnimationBase.cs
- DiscoveryMessageSequence11.cs
- TouchesCapturedWithinProperty.cs
- PropertyToken.cs
- CSharpCodeProvider.cs
- Transform3DGroup.cs
- TextDecorationLocationValidation.cs
- TableLayoutColumnStyleCollection.cs
- ResourceProviderFactory.cs
- JsonReader.cs
- MemberPathMap.cs
- OdbcHandle.cs
- TypefaceCollection.cs
- LayoutUtils.cs
- IsolatedStorageFile.cs
- TextTreeText.cs
- SendSecurityHeader.cs
- DLinqDataModelProvider.cs
- Label.cs
- WebPartVerb.cs
- HttpListener.cs
- Compiler.cs
- SpnEndpointIdentityExtension.cs
- OleDbError.cs
- UnsafeNativeMethods.cs
- ProcessInfo.cs
- SiteOfOriginContainer.cs
- Block.cs
- SpecialFolderEnumConverter.cs
- EntityClassGenerator.cs
- ConnectionPoolManager.cs
- TableSectionStyle.cs
- CacheDependency.cs
- StorageMappingItemCollection.cs
- AggregateNode.cs
- MethodAccessException.cs
- KnownBoxes.cs
- LocatorManager.cs