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
- HtmlContainerControl.cs
- CorrelationManager.cs
- SamlNameIdentifierClaimResource.cs
- Interlocked.cs
- AssemblyBuilder.cs
- ApplicationDirectory.cs
- WebPartPersonalization.cs
- ErrorEventArgs.cs
- ObjectDataSourceChooseTypePanel.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DeleteHelper.cs
- SystemInfo.cs
- HttpCookieCollection.cs
- MeasurementDCInfo.cs
- NavigateEvent.cs
- SendMailErrorEventArgs.cs
- Point.cs
- WebServiceTypeData.cs
- CodeBinaryOperatorExpression.cs
- SynchronizedDispatch.cs
- TdsParser.cs
- ValidatorCompatibilityHelper.cs
- FixedSOMTableRow.cs
- DiscoveryRequestHandler.cs
- ImageMap.cs
- Delegate.cs
- SoapProtocolReflector.cs
- AudioStateChangedEventArgs.cs
- ProfileBuildProvider.cs
- TypeNameConverter.cs
- RubberbandSelector.cs
- IdnMapping.cs
- Mappings.cs
- ThousandthOfEmRealDoubles.cs
- QueryableDataSourceEditData.cs
- DLinqTableProvider.cs
- BufferModeSettings.cs
- EncoderNLS.cs
- UIElement.cs
- Translator.cs
- SqlDesignerDataSourceView.cs
- FunctionMappingTranslator.cs
- UnionCodeGroup.cs
- Helpers.cs
- CodeAttributeArgumentCollection.cs
- StorageBasedPackageProperties.cs
- localization.cs
- SoapFault.cs
- XamlSerializerUtil.cs
- XmlSerializerFaultFormatter.cs
- ServicePointManagerElement.cs
- SslSecurityTokenParameters.cs
- ColumnTypeConverter.cs
- TextEditorCopyPaste.cs
- NotSupportedException.cs
- CollectionChangedEventManager.cs
- QueryGeneratorBase.cs
- ConfigurationCollectionAttribute.cs
- CheckBoxFlatAdapter.cs
- GeometryGroup.cs
- PrintControllerWithStatusDialog.cs
- OracleParameterBinding.cs
- CookielessHelper.cs
- MatrixUtil.cs
- TemplateField.cs
- CompositionTarget.cs
- ConfigurationHelpers.cs
- _Win32.cs
- HttpApplicationStateWrapper.cs
- SqlTransaction.cs
- SemaphoreFullException.cs
- CheckBoxAutomationPeer.cs
- VectorCollection.cs
- BindingValueChangedEventArgs.cs
- ViewGenerator.cs
- IISUnsafeMethods.cs
- ExtensibleClassFactory.cs
- AdvancedBindingPropertyDescriptor.cs
- CultureMapper.cs
- Pair.cs
- PEFileReader.cs
- CharacterHit.cs
- ObjectComplexPropertyMapping.cs
- ConfigurationStrings.cs
- TypeExtension.cs
- mediapermission.cs
- CounterCreationData.cs
- OleCmdHelper.cs
- _DisconnectOverlappedAsyncResult.cs
- Query.cs
- BitmapVisualManager.cs
- ImageButton.cs
- XmlSchemaAnnotated.cs
- ObjectTag.cs
- XPathBinder.cs
- BooleanConverter.cs
- SmtpMail.cs
- SafeArrayTypeMismatchException.cs
- Buffer.cs
- NavigatingCancelEventArgs.cs