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
- OrderedDictionary.cs
- DataRecordInfo.cs
- XamlBrushSerializer.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- HtmlElement.cs
- ItemsControl.cs
- MenuCommands.cs
- XmlBaseWriter.cs
- MiniAssembly.cs
- DoubleCollectionConverter.cs
- ErrorInfoXmlDocument.cs
- Matrix.cs
- AspCompat.cs
- TemplatePartAttribute.cs
- HwndHost.cs
- ResourcesBuildProvider.cs
- PartialCachingControl.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- VisualStateGroup.cs
- XmlAnyElementAttributes.cs
- SoapIncludeAttribute.cs
- XmlUnspecifiedAttribute.cs
- DataTableClearEvent.cs
- MarginsConverter.cs
- DES.cs
- SqlProviderUtilities.cs
- XhtmlBasicSelectionListAdapter.cs
- JsonByteArrayDataContract.cs
- DataViewManager.cs
- UriTemplateDispatchFormatter.cs
- ReferentialConstraint.cs
- GridItemCollection.cs
- NativeObjectSecurity.cs
- SRDisplayNameAttribute.cs
- RecipientInfo.cs
- EncoderExceptionFallback.cs
- XmlCharacterData.cs
- COM2EnumConverter.cs
- ColumnHeaderConverter.cs
- UndoUnit.cs
- CompoundFileStreamReference.cs
- CollectionMarkupSerializer.cs
- HatchBrush.cs
- LeftCellWrapper.cs
- TransformGroup.cs
- XPathNodeHelper.cs
- HostingPreferredMapPath.cs
- SoapAttributeOverrides.cs
- BindingListCollectionView.cs
- PathFigure.cs
- DrawingContext.cs
- DataGridViewDataErrorEventArgs.cs
- FrameworkElementAutomationPeer.cs
- ObjectDesignerDataSourceView.cs
- LineProperties.cs
- CalendarDataBindingHandler.cs
- StatusBarItem.cs
- TextProperties.cs
- updatecommandorderer.cs
- MappableObjectManager.cs
- LeaseManager.cs
- StyleXamlParser.cs
- InputBuffer.cs
- SiteMapProvider.cs
- UIElementParaClient.cs
- TypeRefElement.cs
- EndCreateSecurityTokenRequest.cs
- TraceSwitch.cs
- SpeechDetectedEventArgs.cs
- WebBrowserContainer.cs
- SessionStateItemCollection.cs
- XmlTextReader.cs
- RadioButton.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StorageRoot.cs
- WebPartConnectionsEventArgs.cs
- ChangeInterceptorAttribute.cs
- HierarchicalDataSourceControl.cs
- Rights.cs
- TransformGroup.cs
- BasicCommandTreeVisitor.cs
- TextTreeExtractElementUndoUnit.cs
- RadioButtonFlatAdapter.cs
- RoutedUICommand.cs
- XmlImplementation.cs
- RSAProtectedConfigurationProvider.cs
- DataBindingList.cs
- GenericAuthenticationEventArgs.cs
- EntityProviderServices.cs
- OleDbException.cs
- TypeNameConverter.cs
- ConnectionsZoneAutoFormat.cs
- LoginCancelEventArgs.cs
- StructuralType.cs
- OpenTypeLayoutCache.cs
- ChangePasswordDesigner.cs
- ClickablePoint.cs
- DBAsyncResult.cs
- HierarchicalDataBoundControl.cs
- DrawingVisualDrawingContext.cs