Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WebContentFormatHelper.cs
- SqlDependencyUtils.cs
- NetworkAddressChange.cs
- BindingSource.cs
- TypeContext.cs
- SessionStateSection.cs
- LeftCellWrapper.cs
- AliasExpr.cs
- DbUpdateCommandTree.cs
- KeyGestureConverter.cs
- HttpHandlerActionCollection.cs
- DataFormats.cs
- LiteralControl.cs
- SecurityTokenResolver.cs
- XsltSettings.cs
- ListParagraph.cs
- SystemIPAddressInformation.cs
- NumericExpr.cs
- FacetValues.cs
- ImageSource.cs
- FixedSOMPageElement.cs
- ContentDesigner.cs
- SchemaCollectionCompiler.cs
- XmlDomTextWriter.cs
- FeatureSupport.cs
- RawStylusInputCustomData.cs
- SessionStateItemCollection.cs
- FixedDocument.cs
- XmlException.cs
- ListViewTableRow.cs
- HighContrastHelper.cs
- AddressingVersion.cs
- Rules.cs
- DataService.cs
- ConfigXmlElement.cs
- cache.cs
- SafeFileMappingHandle.cs
- CatchBlock.cs
- DeclaredTypeValidator.cs
- SqlVersion.cs
- FileLogRecordStream.cs
- ToolStripPanelRow.cs
- ScopeElement.cs
- InternalMappingException.cs
- XmlSecureResolver.cs
- DeflateEmulationStream.cs
- PrivilegeNotHeldException.cs
- XmlTypeMapping.cs
- DaylightTime.cs
- SchemaElementLookUpTable.cs
- RepeatBehavior.cs
- CorrelationActionMessageFilter.cs
- FocusChangedEventArgs.cs
- HScrollProperties.cs
- UTF32Encoding.cs
- ToolStripPanelSelectionBehavior.cs
- HitTestResult.cs
- WinEventQueueItem.cs
- KeyEventArgs.cs
- WindowsStatusBar.cs
- GridViewSortEventArgs.cs
- CookielessHelper.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- SafeNativeMethods.cs
- DescendantOverDescendantQuery.cs
- PolicyDesigner.cs
- _DisconnectOverlappedAsyncResult.cs
- PromptStyle.cs
- BuildProviderAppliesToAttribute.cs
- WsdlBuildProvider.cs
- DelegateBodyWriter.cs
- MissingManifestResourceException.cs
- StringUtil.cs
- UnsafeNativeMethodsPenimc.cs
- ProjectionCamera.cs
- WebHttpEndpoint.cs
- WebPartTransformer.cs
- SlotInfo.cs
- _SslStream.cs
- PropertyIDSet.cs
- WebControlAdapter.cs
- ModuleConfigurationInfo.cs
- SemanticAnalyzer.cs
- CharEntityEncoderFallback.cs
- columnmapkeybuilder.cs
- TextDocumentView.cs
- StorageEntityTypeMapping.cs
- ToolZone.cs
- Win32SafeHandles.cs
- AccessibleObject.cs
- PatternMatcher.cs
- DocumentOrderComparer.cs
- WebPartEventArgs.cs
- OrderPreservingMergeHelper.cs
- BitmapFrameDecode.cs
- SuppressIldasmAttribute.cs
- ObjectStateManagerMetadata.cs
- Policy.cs
- CollectionViewGroupInternal.cs