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
- HtmlTableRow.cs
- WinFormsUtils.cs
- Parameter.cs
- ProxySimple.cs
- designeractionbehavior.cs
- LabelEditEvent.cs
- HijriCalendar.cs
- ImageMapEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- NameObjectCollectionBase.cs
- Trace.cs
- SystemIPGlobalStatistics.cs
- HostedBindingBehavior.cs
- ICspAsymmetricAlgorithm.cs
- BinaryWriter.cs
- GeneralTransform3DTo2D.cs
- ScrollableControl.cs
- Line.cs
- WindowsStatusBar.cs
- ObjectKeyFrameCollection.cs
- WebContentFormatHelper.cs
- ControlValuePropertyAttribute.cs
- DataGridItemCollection.cs
- QueryExpr.cs
- BufferedReadStream.cs
- FileReservationCollection.cs
- MenuItemBinding.cs
- InputEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- ScriptControlDescriptor.cs
- SafeEventLogWriteHandle.cs
- NodeFunctions.cs
- LabelExpression.cs
- TogglePattern.cs
- RecognizerStateChangedEventArgs.cs
- Animatable.cs
- AuthorizationRuleCollection.cs
- TreeViewImageIndexConverter.cs
- NeutralResourcesLanguageAttribute.cs
- DataColumnPropertyDescriptor.cs
- ObjectDesignerDataSourceView.cs
- WebPartsPersonalization.cs
- PingOptions.cs
- MatrixAnimationUsingKeyFrames.cs
- ExpandedWrapper.cs
- ConstructorNeedsTagAttribute.cs
- CalendarItem.cs
- GestureRecognitionResult.cs
- TextRunCache.cs
- Queue.cs
- InvokeMethodDesigner.xaml.cs
- JsonGlobals.cs
- BulletedList.cs
- KeyboardNavigation.cs
- WhitespaceRuleLookup.cs
- InertiaTranslationBehavior.cs
- PermissionSet.cs
- TransformedBitmap.cs
- SqlReferenceCollection.cs
- Baml2006SchemaContext.cs
- HtmlEncodedRawTextWriter.cs
- PrinterSettings.cs
- XmlEncodedRawTextWriter.cs
- HostProtectionPermission.cs
- ImageKeyConverter.cs
- SystemSounds.cs
- WebPartMenuStyle.cs
- SpeechSynthesizer.cs
- DocumentViewerAutomationPeer.cs
- SafeTokenHandle.cs
- DatePickerAutomationPeer.cs
- Adorner.cs
- BoundField.cs
- XmlEncodedRawTextWriter.cs
- CaseInsensitiveComparer.cs
- Activator.cs
- GridViewRow.cs
- ObjectDataSourceFilteringEventArgs.cs
- InputMethod.cs
- ControllableStoryboardAction.cs
- UTF7Encoding.cs
- DataGridViewColumn.cs
- ExpressionBinding.cs
- PassportIdentity.cs
- ColumnHeader.cs
- DataGridViewBand.cs
- ServiceProviders.cs
- GPRECT.cs
- Decoder.cs
- SqlBuffer.cs
- TemplateParser.cs
- MonthChangedEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- WindowsListViewSubItem.cs
- recordstatescratchpad.cs
- XmlnsCompatibleWithAttribute.cs
- TextContainerHelper.cs
- FontClient.cs
- DbConnectionStringBuilder.cs
- WindowVisualStateTracker.cs