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
- DataGridViewMethods.cs
- CacheForPrimitiveTypes.cs
- ObjectReferenceStack.cs
- XsltCompileContext.cs
- ViewStateException.cs
- LostFocusEventManager.cs
- SHA1.cs
- EdmScalarPropertyAttribute.cs
- RestClientProxyHandler.cs
- WebPartHelpVerb.cs
- DecoderBestFitFallback.cs
- NoneExcludedImageIndexConverter.cs
- XpsFontSubsetter.cs
- Rotation3DAnimationBase.cs
- PersonalizationProviderCollection.cs
- ParserExtension.cs
- WebBrowserNavigatingEventHandler.cs
- SyndicationLink.cs
- URLMembershipCondition.cs
- KerberosRequestorSecurityToken.cs
- CharKeyFrameCollection.cs
- RowUpdatedEventArgs.cs
- Selector.cs
- _ListenerRequestStream.cs
- CryptoConfig.cs
- SelectorAutomationPeer.cs
- GZipUtils.cs
- _SslSessionsCache.cs
- UnsafeNativeMethods.cs
- SymbolEqualComparer.cs
- MenuItemBinding.cs
- LoadedOrUnloadedOperation.cs
- CellTreeNode.cs
- Imaging.cs
- SystemInfo.cs
- HostedHttpRequestAsyncResult.cs
- DoubleConverter.cs
- CharacterBufferReference.cs
- MessageHeaderInfoTraceRecord.cs
- LayoutUtils.cs
- SimpleHandlerBuildProvider.cs
- EntityTypeBase.cs
- translator.cs
- EntityClassGenerator.cs
- ConfigurationManagerInternalFactory.cs
- BinaryObjectInfo.cs
- CodeAttributeDeclaration.cs
- CompilerTypeWithParams.cs
- GetWinFXPath.cs
- NotificationContext.cs
- ActivityExecutorDelegateInfo.cs
- AddInPipelineAttributes.cs
- WorkflowRuntimeSection.cs
- MSHTMLHostUtil.cs
- WSSecureConversationFeb2005.cs
- RequestContext.cs
- WindowsFormsSynchronizationContext.cs
- ProxyManager.cs
- TreeViewBindingsEditor.cs
- BamlLocalizer.cs
- SafeEventLogWriteHandle.cs
- SystemColorTracker.cs
- DirectoryNotFoundException.cs
- AsyncPostBackTrigger.cs
- SspiHelper.cs
- PropertyInfo.cs
- PaginationProgressEventArgs.cs
- FormsAuthenticationUserCollection.cs
- XmlTextAttribute.cs
- AutomationPatternInfo.cs
- ProcessingInstructionAction.cs
- Italic.cs
- XmlChoiceIdentifierAttribute.cs
- Region.cs
- SQLStringStorage.cs
- WpfKnownMemberInvoker.cs
- UpDownBase.cs
- SiteMapNode.cs
- DataBoundControlAdapter.cs
- RecognitionEventArgs.cs
- VsPropertyGrid.cs
- ServerValidateEventArgs.cs
- InvalidPrinterException.cs
- PropertyInfoSet.cs
- StringCollection.cs
- IconConverter.cs
- RegexRunner.cs
- CacheSection.cs
- RegisteredArrayDeclaration.cs
- CacheSection.cs
- ReachPageContentSerializer.cs
- NativeRightsManagementAPIsStructures.cs
- Identity.cs
- ListViewInsertedEventArgs.cs
- FlowPosition.cs
- DockingAttribute.cs
- WebResourceAttribute.cs
- ProgressBarHighlightConverter.cs
- EntityReference.cs
- SessionEndingCancelEventArgs.cs