Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / CaseExpr.cs / 1305376 / CaseExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { 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 : Node { private readonly NodeList_whenThenExpr; private readonly Node _elseExpr; /// /// Initializes case expression without else sub-expression. /// /// whenThen expression list internal CaseExpr(NodeListwhenThenExpr) : this(whenThenExpr, null) { } /// /// Initializes case expression with else sub-expression. /// /// whenThen expression list /// else expression internal CaseExpr(NodeListwhenThenExpr, Node elseExpr) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions. /// internal NodeListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression. /// internal Node ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression. /// internal class WhenThenExpr : Node { private readonly Node _whenExpr; private readonly Node _thenExpr; ////// Initializes WhenThen sub-expression. /// /// When expression /// Then expression internal WhenThenExpr(Node whenExpr, Node thenExpr) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression. /// internal Node WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression. /// internal Node ThenExpr { get { return _thenExpr; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { 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 : Node { private readonly NodeList_whenThenExpr; private readonly Node _elseExpr; /// /// Initializes case expression without else sub-expression. /// /// whenThen expression list internal CaseExpr(NodeListwhenThenExpr) : this(whenThenExpr, null) { } /// /// Initializes case expression with else sub-expression. /// /// whenThen expression list /// else expression internal CaseExpr(NodeListwhenThenExpr, Node elseExpr) { _whenThenExpr = whenThenExpr; _elseExpr = elseExpr; } /// /// Returns the list of WhenThen expressions. /// internal NodeListWhenThenExprList { get { return _whenThenExpr; } } /// /// Returns the optional Else expression. /// internal Node ElseExpr { get { return _elseExpr; } } } ////// Represents the when then sub expression. /// internal class WhenThenExpr : Node { private readonly Node _whenExpr; private readonly Node _thenExpr; ////// Initializes WhenThen sub-expression. /// /// When expression /// Then expression internal WhenThenExpr(Node whenExpr, Node thenExpr) { _whenExpr = whenExpr; _thenExpr = thenExpr; } ////// Returns When expression. /// internal Node WhenExpr { get { return _whenExpr; } } ////// Returns Then Expression. /// internal Node 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
- ComponentDispatcher.cs
- WindowVisualStateTracker.cs
- DataObjectFieldAttribute.cs
- Soap11ServerProtocol.cs
- TextTreeExtractElementUndoUnit.cs
- DemultiplexingDispatchMessageFormatter.cs
- ListView.cs
- HMACSHA384.cs
- TraceInternal.cs
- HtmlDocument.cs
- RegexWorker.cs
- SpecialNameAttribute.cs
- BamlVersionHeader.cs
- SqlFlattener.cs
- ListArgumentProvider.cs
- UnsafeNativeMethods.cs
- HtmlElementCollection.cs
- TextTreeNode.cs
- ElementMarkupObject.cs
- CharEnumerator.cs
- ListBox.cs
- ColumnWidthChangedEvent.cs
- _ConnectOverlappedAsyncResult.cs
- DataReceivedEventArgs.cs
- WebConfigurationManager.cs
- UshortList2.cs
- FindProgressChangedEventArgs.cs
- SafeFreeMibTable.cs
- ReadContentAsBinaryHelper.cs
- RootBrowserWindow.cs
- AssemblyResourceLoader.cs
- Html32TextWriter.cs
- XmlDataSource.cs
- CompleteWizardStep.cs
- SmtpLoginAuthenticationModule.cs
- TextBoxRenderer.cs
- InputManager.cs
- DefaultWorkflowSchedulerService.cs
- CursorConverter.cs
- Attributes.cs
- MarkupCompiler.cs
- AdRotator.cs
- ProcessHostFactoryHelper.cs
- XPathNodeInfoAtom.cs
- DecimalConstantAttribute.cs
- DataGridRelationshipRow.cs
- TextEffect.cs
- DNS.cs
- SHA512CryptoServiceProvider.cs
- DeploymentSection.cs
- WmpBitmapEncoder.cs
- SystemIcmpV4Statistics.cs
- TextDecoration.cs
- Viewport3DAutomationPeer.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ConfigsHelper.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XhtmlBasicFormAdapter.cs
- BitStack.cs
- ScriptServiceAttribute.cs
- DesignBinding.cs
- TextTreeObjectNode.cs
- AesCryptoServiceProvider.cs
- Tokenizer.cs
- _SecureChannel.cs
- AttributeProviderAttribute.cs
- FileLogRecordEnumerator.cs
- Misc.cs
- Clipboard.cs
- EventHandlerList.cs
- DataGridAddNewRow.cs
- DisplayNameAttribute.cs
- Binding.cs
- ParentUndoUnit.cs
- Matrix3DValueSerializer.cs
- TokenizerHelper.cs
- SchemaObjectWriter.cs
- XmlDownloadManager.cs
- CodeNamespaceCollection.cs
- BoundPropertyEntry.cs
- LambdaExpression.cs
- HttpWebRequestElement.cs
- RemotingSurrogateSelector.cs
- XsltLibrary.cs
- ConfigXmlSignificantWhitespace.cs
- _SslSessionsCache.cs
- DuplicateWaitObjectException.cs
- ClassHandlersStore.cs
- ObjectPersistData.cs
- DockAndAnchorLayout.cs
- WindowsSecurityToken.cs
- TripleDESCryptoServiceProvider.cs
- ValueUnavailableException.cs
- CapabilitiesState.cs
- XmlSerializableServices.cs
- RewritingValidator.cs
- StickyNoteContentControl.cs
- RegexWriter.cs
- RegisteredArrayDeclaration.cs
- TargetParameterCountException.cs