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
- CriticalFinalizerObject.cs
- RoutedEventValueSerializer.cs
- Stacktrace.cs
- Menu.cs
- NamespaceTable.cs
- StandardOleMarshalObject.cs
- WebControl.cs
- InitializationEventAttribute.cs
- HttpCookieCollection.cs
- HostProtectionPermission.cs
- HttpUnhandledOperationInvoker.cs
- ExtensionDataObject.cs
- DesignTimeParseData.cs
- TableLayout.cs
- DocumentReference.cs
- DebugView.cs
- PropertyStore.cs
- ScriptingJsonSerializationSection.cs
- Dictionary.cs
- Page.cs
- SqlUserDefinedAggregateAttribute.cs
- RuleAction.cs
- VirtualizedItemProviderWrapper.cs
- Encoder.cs
- OutputCacheProfile.cs
- ObjectPersistData.cs
- InputProcessorProfilesLoader.cs
- FrameworkElementFactory.cs
- DbMetaDataCollectionNames.cs
- DataGridTextBoxColumn.cs
- BindingCollection.cs
- DataShape.cs
- ColumnBinding.cs
- DataTableReader.cs
- AttachedPropertyBrowsableAttribute.cs
- SpecularMaterial.cs
- ArithmeticException.cs
- BoundPropertyEntry.cs
- ModulesEntry.cs
- ItemsControl.cs
- HttpCachePolicy.cs
- StoreItemCollection.Loader.cs
- DataServiceHostWrapper.cs
- CompressionTransform.cs
- SymDocumentType.cs
- ListQueryResults.cs
- Cursors.cs
- SQLDecimalStorage.cs
- AdRotator.cs
- PersonalizationEntry.cs
- CallbackDebugElement.cs
- MapPathBasedVirtualPathProvider.cs
- TextElementCollection.cs
- DeadCharTextComposition.cs
- ColorConvertedBitmap.cs
- HttpCookie.cs
- CorrelationQuery.cs
- Vector3DCollectionConverter.cs
- OutputCacheProfile.cs
- IListConverters.cs
- BinHexDecoder.cs
- PathParser.cs
- TrustLevelCollection.cs
- CountdownEvent.cs
- ReceiveSecurityHeader.cs
- File.cs
- SqlProfileProvider.cs
- WebConfigurationHost.cs
- ListViewCancelEventArgs.cs
- OrderedEnumerableRowCollection.cs
- IpcClientChannel.cs
- CapabilitiesRule.cs
- NativeMethods.cs
- DetailsViewModeEventArgs.cs
- CompositeDataBoundControl.cs
- HierarchicalDataSourceControl.cs
- ToolboxBitmapAttribute.cs
- FilteredSchemaElementLookUpTable.cs
- DataControlCommands.cs
- TimeoutException.cs
- MappingItemCollection.cs
- SystemFonts.cs
- HtmlInputReset.cs
- NoPersistHandle.cs
- DataSourceXmlSerializationAttribute.cs
- SplineQuaternionKeyFrame.cs
- SQLInt32Storage.cs
- ContextMenu.cs
- DirectoryRootQuery.cs
- ExpressionBinding.cs
- SafeLibraryHandle.cs
- MessagePartDescription.cs
- TrustManagerMoreInformation.cs
- sqlstateclientmanager.cs
- QilList.cs
- ListMarkerSourceInfo.cs
- Zone.cs
- ParserContext.cs
- DataSourceCacheDurationConverter.cs
- VirtualizingStackPanel.cs