Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowAutomationPeer.cs
- HwndAppCommandInputProvider.cs
- TransformationRules.cs
- WebColorConverter.cs
- HyperLinkStyle.cs
- DynamicPropertyHolder.cs
- XmlJsonWriter.cs
- SafeFileHandle.cs
- SessionKeyExpiredException.cs
- EntityDataSourceSelectingEventArgs.cs
- DNS.cs
- ScopelessEnumAttribute.cs
- PriorityQueue.cs
- Decorator.cs
- StyleCollection.cs
- ListControl.cs
- XomlCompilerResults.cs
- StrokeCollectionConverter.cs
- XmlCDATASection.cs
- TerminatorSinks.cs
- DataSourceHelper.cs
- PointCollectionConverter.cs
- Adorner.cs
- GreenMethods.cs
- PageClientProxyGenerator.cs
- ChoiceConverter.cs
- QueryCreatedEventArgs.cs
- ContentType.cs
- XmlSortKeyAccumulator.cs
- DataGridColumnCollection.cs
- EqualityComparer.cs
- DBNull.cs
- AutomationPeer.cs
- Oid.cs
- CommonObjectSecurity.cs
- updateconfighost.cs
- DataKey.cs
- TextPattern.cs
- SqlInternalConnection.cs
- ModuleBuilderData.cs
- BamlLocalizationDictionary.cs
- SoapSchemaImporter.cs
- ApplicationSettingsBase.cs
- InputScopeAttribute.cs
- DataGridPagingPage.cs
- HandledEventArgs.cs
- ProfilePropertyMetadata.cs
- HierarchicalDataSourceControl.cs
- SiteMapNode.cs
- ProgressBar.cs
- ConfigurationSectionCollection.cs
- BinaryFormatterWriter.cs
- SingleConverter.cs
- XPathDocument.cs
- mactripleDES.cs
- BaseUriWithWildcard.cs
- GridViewCancelEditEventArgs.cs
- SafeNativeMethodsOther.cs
- CompModSwitches.cs
- ErrorHandler.cs
- ConfigurationErrorsException.cs
- TranslateTransform3D.cs
- EncoderParameter.cs
- FlowLayoutSettings.cs
- DependencyObjectValidator.cs
- ServiceCredentialsSecurityTokenManager.cs
- RegionIterator.cs
- ManipulationInertiaStartingEventArgs.cs
- RichTextBox.cs
- CqlIdentifiers.cs
- Compilation.cs
- RepeatButton.cs
- FlowDocument.cs
- SchemaName.cs
- TcpAppDomainProtocolHandler.cs
- ComboBoxRenderer.cs
- Drawing.cs
- Deflater.cs
- RadioButtonBaseAdapter.cs
- SoapHeaders.cs
- RangeValueProviderWrapper.cs
- CompiledELinqQueryState.cs
- OrderedDictionary.cs
- CrossSiteScriptingValidation.cs
- ServiceInfo.cs
- X509Certificate2Collection.cs
- XsltInput.cs
- GridViewRowPresenterBase.cs
- SafeFileMappingHandle.cs
- Connector.cs
- LoginName.cs
- ObjectManager.cs
- NumberFormatter.cs
- ResourcesGenerator.cs
- BaseResourcesBuildProvider.cs
- MimePart.cs
- TreeViewItem.cs
- DataListCommandEventArgs.cs
- Attachment.cs
- EventArgs.cs