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
- Errors.cs
- TextEditorThreadLocalStore.cs
- CompositeDispatchFormatter.cs
- DataGridRowClipboardEventArgs.cs
- ObfuscationAttribute.cs
- ImageAttributes.cs
- CombinedHttpChannel.cs
- Rijndael.cs
- ChtmlLinkAdapter.cs
- FullTextBreakpoint.cs
- KerberosSecurityTokenProvider.cs
- WebPartDisplayMode.cs
- HtmlUtf8RawTextWriter.cs
- DecoderReplacementFallback.cs
- DataGridViewLinkColumn.cs
- CheckPair.cs
- AVElementHelper.cs
- ContainerSelectorActiveEvent.cs
- CodePrimitiveExpression.cs
- FrameworkReadOnlyPropertyMetadata.cs
- UnsafeNativeMethods.cs
- MergePropertyDescriptor.cs
- ToolStripDropDown.cs
- DbConnectionStringCommon.cs
- Run.cs
- CopyOfAction.cs
- Rules.cs
- Speller.cs
- SimpleModelProvider.cs
- KnownBoxes.cs
- PolygonHotSpot.cs
- TypeResolver.cs
- WindowsRichEdit.cs
- XMLSyntaxException.cs
- DecoderFallbackWithFailureFlag.cs
- DragEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- SendKeys.cs
- PeerResolverSettings.cs
- DateTimePicker.cs
- IpcClientChannel.cs
- GenericTextProperties.cs
- QueryFunctions.cs
- Point3DAnimation.cs
- InkCanvasSelectionAdorner.cs
- SystemSounds.cs
- Formatter.cs
- BamlLocalizableResource.cs
- StrokeCollection2.cs
- HttpCacheParams.cs
- BitmapEffectInput.cs
- ObjectNavigationPropertyMapping.cs
- WebPartEditorCancelVerb.cs
- EpmHelper.cs
- SqlDataSourceDesigner.cs
- CheckBox.cs
- SymmetricKeyWrap.cs
- ControlEvent.cs
- ArraySet.cs
- StylusButtonEventArgs.cs
- TextRangeEdit.cs
- IEnumerable.cs
- KeysConverter.cs
- BinaryFormatter.cs
- CodeSpit.cs
- SelectionProcessor.cs
- OleDbException.cs
- CodeActivity.cs
- ReliableChannelListener.cs
- HyperLinkStyle.cs
- LogStore.cs
- WindowsGraphics2.cs
- TrackingServices.cs
- SchemaCollectionCompiler.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- WebServiceEnumData.cs
- EntityDataSourceDataSelectionPanel.cs
- SiteMapProvider.cs
- HostingEnvironmentSection.cs
- Merger.cs
- FixedSOMTableCell.cs
- TriggerAction.cs
- MimePart.cs
- StructuralType.cs
- ProgramPublisher.cs
- SymmetricAlgorithm.cs
- FontCollection.cs
- Canvas.cs
- XmlAttributes.cs
- ContentPosition.cs
- ToggleProviderWrapper.cs
- DataContractSerializer.cs
- EndPoint.cs
- CustomPopupPlacement.cs
- SafeLocalAllocation.cs
- TableColumn.cs
- NavigationHelper.cs
- NullableDecimalAverageAggregationOperator.cs
- InheritanceContextChangedEventManager.cs
- RecognizerStateChangedEventArgs.cs