Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DbProviderFactory.cs
- DataGridRow.cs
- WeakEventManager.cs
- SimpleWorkerRequest.cs
- SafeEventLogWriteHandle.cs
- UnmanagedHandle.cs
- FileUtil.cs
- RepeatButton.cs
- RefExpr.cs
- DockingAttribute.cs
- RuleSetBrowserDialog.cs
- AmbientLight.cs
- LayoutEditorPart.cs
- ZipIOLocalFileDataDescriptor.cs
- X509ChainElement.cs
- EdmItemError.cs
- MobilePage.cs
- Line.cs
- HandleCollector.cs
- ErrorHandler.cs
- BinaryParser.cs
- XmlQueryTypeFactory.cs
- WindowsFormsHostPropertyMap.cs
- Model3DCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- BinaryWriter.cs
- WindowVisualStateTracker.cs
- ContentType.cs
- PixelShader.cs
- FullTextBreakpoint.cs
- DataGridViewCheckBoxColumn.cs
- TextRenderer.cs
- DataSourceCacheDurationConverter.cs
- MarshalDirectiveException.cs
- ReadOnlyAttribute.cs
- WindowsToolbarItemAsMenuItem.cs
- BufferedStream.cs
- FillErrorEventArgs.cs
- Viewport2DVisual3D.cs
- ActivityTypeCodeDomSerializer.cs
- FileDialogCustomPlace.cs
- BezierSegment.cs
- SqlConnectionFactory.cs
- ItemMap.cs
- GroupPartitionExpr.cs
- XhtmlBasicValidationSummaryAdapter.cs
- ProxyWebPartConnectionCollection.cs
- DataServiceExpressionVisitor.cs
- CalculatedColumn.cs
- TreeNodeBinding.cs
- TextCollapsingProperties.cs
- ReadWriteObjectLock.cs
- ClientTargetCollection.cs
- UnsafeNativeMethods.cs
- ChangePassword.cs
- InstanceNormalEvent.cs
- RepeaterCommandEventArgs.cs
- DesignerValidatorAdapter.cs
- SpecularMaterial.cs
- FontStretches.cs
- exports.cs
- PipelineModuleStepContainer.cs
- FileChangeNotifier.cs
- LabelLiteral.cs
- PathNode.cs
- LinqDataSource.cs
- RegistryKey.cs
- CodeCompiler.cs
- XmlNamespaceManager.cs
- ScalarType.cs
- SafeLocalMemHandle.cs
- SyncMethodInvoker.cs
- SingleResultAttribute.cs
- XamlPointCollectionSerializer.cs
- SymDocumentType.cs
- WebFormsRootDesigner.cs
- ZipPackage.cs
- VideoDrawing.cs
- FunctionOverloadResolver.cs
- RegexWorker.cs
- PeerNearMe.cs
- HttpSysSettings.cs
- cookie.cs
- SiteMembershipCondition.cs
- ElementHostAutomationPeer.cs
- XmlAttributeProperties.cs
- SmtpNegotiateAuthenticationModule.cs
- ReceiveContext.cs
- BordersPage.cs
- BitmapImage.cs
- NetworkCredential.cs
- ZipIOExtraFieldElement.cs
- CultureSpecificStringDictionary.cs
- CommunicationObject.cs
- TextServicesHost.cs
- ISessionStateStore.cs
- MetafileHeader.cs
- WindowsSpinner.cs
- filewebrequest.cs
- TimeSpan.cs