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
- BooleanStorage.cs
- ExceptionUtil.cs
- ComboBox.cs
- BitmapData.cs
- PublisherMembershipCondition.cs
- AbandonedMutexException.cs
- SqlNode.cs
- FrameworkElement.cs
- DispatchWrapper.cs
- TextEditorContextMenu.cs
- GeneralTransform.cs
- NameValueFileSectionHandler.cs
- ScrollEvent.cs
- DataGridViewImageColumn.cs
- TextEditorLists.cs
- WebPartConnectionsConnectVerb.cs
- BuilderPropertyEntry.cs
- DynamicMethod.cs
- SoapSchemaMember.cs
- SerializationInfoEnumerator.cs
- SizeF.cs
- ParallelTimeline.cs
- ColorConvertedBitmap.cs
- SystemIPAddressInformation.cs
- ConfigurationLoader.cs
- XmlSchemas.cs
- SpellerStatusTable.cs
- SqlBinder.cs
- Fonts.cs
- AnimationClock.cs
- ActivityDesigner.cs
- EventLogReader.cs
- GC.cs
- DisplayNameAttribute.cs
- ConstructorBuilder.cs
- BooleanFunctions.cs
- ConfigurationSectionGroupCollection.cs
- RegisteredArrayDeclaration.cs
- propertyentry.cs
- DataGridViewCellParsingEventArgs.cs
- TextServicesManager.cs
- FixedFindEngine.cs
- WebPartZoneCollection.cs
- HelpEvent.cs
- CroppedBitmap.cs
- CaseKeyBox.ViewModel.cs
- VScrollBar.cs
- PeerCustomResolverSettings.cs
- HGlobalSafeHandle.cs
- InputChannel.cs
- FixedSOMTextRun.cs
- ChannelRequirements.cs
- PrintPreviewGraphics.cs
- _SpnDictionary.cs
- _Win32.cs
- WsiProfilesElementCollection.cs
- BindingManagerDataErrorEventArgs.cs
- DataException.cs
- ModelPropertyDescriptor.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TargetInvocationException.cs
- SpinLock.cs
- BitmapCodecInfo.cs
- InstanceCreationEditor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ScalarType.cs
- OutputCacheSection.cs
- ClassHandlersStore.cs
- BooleanToVisibilityConverter.cs
- QilExpression.cs
- RadioButtonList.cs
- XamlInt32CollectionSerializer.cs
- TimeManager.cs
- XmlTypeAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- Helper.cs
- BackStopAuthenticationModule.cs
- LinkDesigner.cs
- adornercollection.cs
- DataSourceSelectArguments.cs
- BookmarkInfo.cs
- FontCacheUtil.cs
- RelatedPropertyManager.cs
- ZipIOLocalFileHeader.cs
- HtmlTextBoxAdapter.cs
- ClassData.cs
- ValueConversionAttribute.cs
- DataGridViewSelectedRowCollection.cs
- PropertyRef.cs
- ButtonFieldBase.cs
- DataPager.cs
- TreeNodeCollection.cs
- SoundPlayerAction.cs
- CodeDomLocalizationProvider.cs
- QueryCacheEntry.cs
- JsonCollectionDataContract.cs
- HandlerBase.cs
- DocumentXmlWriter.cs
- DecimalAnimationBase.cs
- PointKeyFrameCollection.cs