Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ApplicationGesture.cs
- PasswordDeriveBytes.cs
- CallbackValidatorAttribute.cs
- DeviceContext.cs
- ExpressionBuilder.cs
- SafeThreadHandle.cs
- AttachedAnnotationChangedEventArgs.cs
- EncodingNLS.cs
- TimersDescriptionAttribute.cs
- SrgsToken.cs
- SettingsAttributes.cs
- DataSetViewSchema.cs
- BitmapCache.cs
- HtmlButton.cs
- LambdaCompiler.Binary.cs
- DataGridItem.cs
- ToolStripOverflowButton.cs
- DataIdProcessor.cs
- PreviewKeyDownEventArgs.cs
- Solver.cs
- AsyncPostBackTrigger.cs
- Int16AnimationBase.cs
- NetSectionGroup.cs
- WindowsToolbarItemAsMenuItem.cs
- SQLGuidStorage.cs
- CodeRegionDirective.cs
- DbUpdateCommandTree.cs
- StateInitializationDesigner.cs
- HttpModulesSection.cs
- ElapsedEventArgs.cs
- StrokeDescriptor.cs
- BookmarkEventArgs.cs
- CryptoApi.cs
- Exceptions.cs
- Avt.cs
- CustomAttributeSerializer.cs
- OneToOneMappingSerializer.cs
- AuditLevel.cs
- OleDbPermission.cs
- PathGeometry.cs
- IImplicitResourceProvider.cs
- OraclePermissionAttribute.cs
- CompilerErrorCollection.cs
- PropertyItem.cs
- ScrollViewer.cs
- PipeStream.cs
- MDIControlStrip.cs
- JsonReaderWriterFactory.cs
- MaterializeFromAtom.cs
- ConnectivityStatus.cs
- LoginAutoFormat.cs
- Oci.cs
- BooleanConverter.cs
- ConstructorNeedsTagAttribute.cs
- FileSystemEventArgs.cs
- CompilationSection.cs
- WebPartDisplayMode.cs
- BlobPersonalizationState.cs
- ImportedPolicyConversionContext.cs
- SafeEventLogWriteHandle.cs
- StringConcat.cs
- XmlWrappingReader.cs
- CodeArrayIndexerExpression.cs
- hresults.cs
- KnownBoxes.cs
- ConstrainedDataObject.cs
- StylusButtonCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- OrCondition.cs
- _TLSstream.cs
- FlowDocumentPaginator.cs
- SmtpReplyReader.cs
- LinearGradientBrush.cs
- AddingNewEventArgs.cs
- PeerCustomResolverElement.cs
- LineSegment.cs
- NestedContainer.cs
- HwndKeyboardInputProvider.cs
- FocusManager.cs
- InfoCardProofToken.cs
- FullTrustAssembly.cs
- SingleConverter.cs
- PrintingPermission.cs
- TableColumn.cs
- RadioButtonBaseAdapter.cs
- DefaultSection.cs
- RoutedEventValueSerializer.cs
- NetworkStream.cs
- FlowLayout.cs
- Button.cs
- LayoutSettings.cs
- Attributes.cs
- SessionState.cs
- LogicalExpressionEditor.cs
- PartialTrustHelpers.cs
- ServiceDescription.cs
- ZipIOCentralDirectoryBlock.cs
- SystemFonts.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- Pool.cs