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
- Control.cs
- StylusButtonEventArgs.cs
- recordstatefactory.cs
- FlagsAttribute.cs
- DelegateHelpers.Generated.cs
- ViewLoader.cs
- QueryPageSettingsEventArgs.cs
- Zone.cs
- ProcessInfo.cs
- NumericUpDown.cs
- SharedDp.cs
- XhtmlBasicTextBoxAdapter.cs
- WebHttpBinding.cs
- COM2ColorConverter.cs
- sqlser.cs
- CustomAttributeFormatException.cs
- GuidelineSet.cs
- ScriptComponentDescriptor.cs
- AutomationPatternInfo.cs
- BuildManager.cs
- IdentitySection.cs
- WebPartManagerInternals.cs
- FaultContext.cs
- RequiredFieldValidator.cs
- EncryptedType.cs
- NonSerializedAttribute.cs
- UnsafeNativeMethods.cs
- MultilineStringEditor.cs
- Zone.cs
- ColorConvertedBitmap.cs
- DescendantBaseQuery.cs
- EpmContentSerializer.cs
- DataGridViewTextBoxColumn.cs
- EditingMode.cs
- AppModelKnownContentFactory.cs
- ControlBindingsConverter.cs
- TreeNode.cs
- CapabilitiesPattern.cs
- DisableDpiAwarenessAttribute.cs
- Timeline.cs
- ColumnHeaderConverter.cs
- VisualBrush.cs
- InvalidComObjectException.cs
- Wildcard.cs
- GroupBox.cs
- HttpRequestCacheValidator.cs
- SystemIPGlobalStatistics.cs
- Emitter.cs
- SrgsElementFactoryCompiler.cs
- ConfigXmlWhitespace.cs
- SqlDataReader.cs
- WindowsListViewItem.cs
- ExplicitDiscriminatorMap.cs
- PageContentAsyncResult.cs
- DataBinder.cs
- SourceItem.cs
- QueryCreatedEventArgs.cs
- _LocalDataStoreMgr.cs
- UrlAuthorizationModule.cs
- EncryptedKey.cs
- GridViewColumnCollection.cs
- Image.cs
- SR.cs
- HtmlInputText.cs
- WebPartActionVerb.cs
- DocumentsTrace.cs
- MetadataSource.cs
- PreloadedPackages.cs
- SignatureDescription.cs
- Point3DCollection.cs
- UnsettableComboBox.cs
- DurableInstanceManager.cs
- XmlDataProvider.cs
- XPathSingletonIterator.cs
- AppDomainFactory.cs
- DeadCharTextComposition.cs
- UTF7Encoding.cs
- BookmarkTable.cs
- Typography.cs
- AvtEvent.cs
- ProgressBarRenderer.cs
- XPathDescendantIterator.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- WindowsAuthenticationEventArgs.cs
- Registry.cs
- Stroke.cs
- IdentityValidationException.cs
- InvokeWebService.cs
- CodeSnippetTypeMember.cs
- AudioLevelUpdatedEventArgs.cs
- AssociationSet.cs
- CancelRequestedRecord.cs
- GridViewUpdatedEventArgs.cs
- Pair.cs
- SerializationSectionGroup.cs
- WebMessageEncodingElement.cs
- VisualBrush.cs
- WindowsFormsLinkLabel.cs
- WinEventHandler.cs
- DynamicValidatorEventArgs.cs