Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SspiNegotiationTokenProvider.cs
- LinqDataSourceHelper.cs
- SessionStateContainer.cs
- Choices.cs
- TextDecoration.cs
- InternalConfigRoot.cs
- SqlGenericUtil.cs
- BuildManagerHost.cs
- TypefaceMetricsCache.cs
- OptionUsage.cs
- ValidationErrorEventArgs.cs
- MatrixAnimationBase.cs
- DSASignatureDeformatter.cs
- KeyTimeConverter.cs
- OSEnvironmentHelper.cs
- StyleCollection.cs
- TransformDescriptor.cs
- SiteIdentityPermission.cs
- XmlRawWriter.cs
- TypeDelegator.cs
- DirectoryNotFoundException.cs
- UndirectedGraph.cs
- RootBrowserWindowProxy.cs
- PngBitmapDecoder.cs
- UpdateProgress.cs
- ByteAnimation.cs
- WebPartZoneBase.cs
- CustomValidator.cs
- GradientStopCollection.cs
- MessagePropertyFilter.cs
- MimeParameters.cs
- BuildManagerHost.cs
- ErrorRuntimeConfig.cs
- XmlTypeAttribute.cs
- ScrollItemPattern.cs
- PerformanceCounterLib.cs
- BinaryWriter.cs
- PersistNameAttribute.cs
- ResourceAttributes.cs
- QueryOperationResponseOfT.cs
- DropAnimation.xaml.cs
- errorpatternmatcher.cs
- XmlTextAttribute.cs
- NonDualMessageSecurityOverHttp.cs
- UidManager.cs
- UnsafeNativeMethods.cs
- TextParentUndoUnit.cs
- DataGridCell.cs
- ManagementScope.cs
- CharacterMetrics.cs
- NetPipeSectionData.cs
- LayoutEvent.cs
- MarkupExtensionParser.cs
- HashMembershipCondition.cs
- FolderBrowserDialogDesigner.cs
- RecognizedWordUnit.cs
- XmlSchemaDocumentation.cs
- SystemWebCachingSectionGroup.cs
- MediaContextNotificationWindow.cs
- TemplateControlParser.cs
- DbProviderFactory.cs
- GAC.cs
- CacheOutputQuery.cs
- DetailsViewCommandEventArgs.cs
- FormViewInsertEventArgs.cs
- SizeConverter.cs
- TemplateControlCodeDomTreeGenerator.cs
- Base64Stream.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- LayoutUtils.cs
- GPRECT.cs
- MemoryStream.cs
- Model3DCollection.cs
- CfgArc.cs
- AmbientProperties.cs
- XmlSchemaComplexContent.cs
- DisplayMemberTemplateSelector.cs
- TypeSystemProvider.cs
- CompositeDuplexBindingElementImporter.cs
- RadioButtonList.cs
- XmlAttributes.cs
- DataBindingExpressionBuilder.cs
- XmlDomTextWriter.cs
- DetailsViewRow.cs
- SQLGuidStorage.cs
- AssemblyCollection.cs
- AutoFocusStyle.xaml.cs
- FixedPageAutomationPeer.cs
- ToggleProviderWrapper.cs
- SrgsOneOf.cs
- HttpException.cs
- TextEffect.cs
- WebPartConnectionsEventArgs.cs
- EnlistmentState.cs
- FormsAuthenticationCredentials.cs
- EmbeddedObject.cs
- Gdiplus.cs
- webeventbuffer.cs
- RelationshipEntry.cs
- DataGridViewCellValidatingEventArgs.cs