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
- ModuleElement.cs
- EntityCommand.cs
- DecoderReplacementFallback.cs
- StatusBarDesigner.cs
- DatePicker.cs
- WindowsToolbarItemAsMenuItem.cs
- DataGridCellsPanel.cs
- DependencyPropertyAttribute.cs
- SafeFileMappingHandle.cs
- FunctionParameter.cs
- _ConnectionGroup.cs
- ListMarkerLine.cs
- PersistenceTypeAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- IgnoreSection.cs
- TextRunTypographyProperties.cs
- StyleSelector.cs
- DesignerCalendarAdapter.cs
- ZipPackage.cs
- WebPartDisplayMode.cs
- ValidationPropertyAttribute.cs
- NonClientArea.cs
- MultipleViewProviderWrapper.cs
- TargetParameterCountException.cs
- WebPartsSection.cs
- ExpressionBindingsDialog.cs
- WindowsStatusBar.cs
- TagElement.cs
- ConfigurationValidatorBase.cs
- ParenthesizePropertyNameAttribute.cs
- ProxyAssemblyNotLoadedException.cs
- HttpListenerRequest.cs
- ShaderRenderModeValidation.cs
- ExpressionBindings.cs
- SystemTcpConnection.cs
- XmlStringTable.cs
- CrossSiteScriptingValidation.cs
- TextChangedEventArgs.cs
- ImplicitInputBrush.cs
- XmlSubtreeReader.cs
- ProviderConnectionPoint.cs
- MultiSelectRootGridEntry.cs
- ConnectionManagementElement.cs
- Baml2006KnownTypes.cs
- BulletedList.cs
- AvTrace.cs
- PeerCollaboration.cs
- InstanceCollisionException.cs
- CompilationUtil.cs
- ViewBase.cs
- Vector3dCollection.cs
- MarshalDirectiveException.cs
- RelationshipNavigation.cs
- HijriCalendar.cs
- ToolStripDesigner.cs
- translator.cs
- XmlNullResolver.cs
- CodeTypeReference.cs
- DrawingGroup.cs
- GreenMethods.cs
- ListBindingHelper.cs
- ControlValuePropertyAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- BinaryObjectInfo.cs
- ComponentRenameEvent.cs
- DelegateHelpers.Generated.cs
- SimpleExpression.cs
- MenuEventArgs.cs
- Route.cs
- IgnoreSectionHandler.cs
- DragEvent.cs
- HttpGetProtocolReflector.cs
- AppDomainManager.cs
- IPPacketInformation.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- TreeNodeCollection.cs
- RemoteWebConfigurationHostServer.cs
- RelationshipConstraintValidator.cs
- FieldBuilder.cs
- StringUtil.cs
- PixelFormatConverter.cs
- PropertyGridEditorPart.cs
- CustomCategoryAttribute.cs
- PlainXmlDeserializer.cs
- X509AsymmetricSecurityKey.cs
- DirtyTextRange.cs
- HtmlTitle.cs
- ListViewSortEventArgs.cs
- CatalogPartChrome.cs
- WebPartManager.cs
- XmlElementElementCollection.cs
- DaylightTime.cs
- ResumeStoryboard.cs
- CodeCommentStatement.cs
- ResumeStoryboard.cs
- TreeNodeClickEventArgs.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- RemoteWebConfigurationHostServer.cs
- MonitoringDescriptionAttribute.cs
- ValueUnavailableException.cs