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
- CodeDelegateInvokeExpression.cs
- FixedHighlight.cs
- XamlGridLengthSerializer.cs
- WSTrustDec2005.cs
- ListBoxChrome.cs
- ChooseAction.cs
- Activator.cs
- DataRecordInternal.cs
- Storyboard.cs
- XmlSerializationGeneratedCode.cs
- SHA384Managed.cs
- ConfigXmlCDataSection.cs
- PKCS1MaskGenerationMethod.cs
- ReadOnlyNameValueCollection.cs
- ComponentCollection.cs
- Graph.cs
- DbDataReader.cs
- DecimalAnimationBase.cs
- AsmxEndpointPickerExtension.cs
- CodeTypeDeclarationCollection.cs
- PrintPreviewControl.cs
- FieldValue.cs
- SerializableTypeCodeDomSerializer.cs
- Recipient.cs
- CodeGenHelper.cs
- TdsParameterSetter.cs
- ByteAnimation.cs
- BufferedStream.cs
- WebPartDeleteVerb.cs
- WebScriptEnablingElement.cs
- Grant.cs
- SequentialOutput.cs
- RichTextBoxAutomationPeer.cs
- TypedReference.cs
- TemplateParser.cs
- BitmapEffect.cs
- UserPreferenceChangingEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- HostProtectionPermission.cs
- SerialPinChanges.cs
- SemanticResultKey.cs
- HttpGetProtocolImporter.cs
- DllNotFoundException.cs
- _ProxyRegBlob.cs
- EventLogStatus.cs
- WebPartManager.cs
- MediaScriptCommandRoutedEventArgs.cs
- TextTreeInsertUndoUnit.cs
- GridViewRowEventArgs.cs
- ApplyImportsAction.cs
- InvalidWMPVersionException.cs
- HttpCookieCollection.cs
- StrokeCollection2.cs
- TableCellCollection.cs
- Table.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- BaseTreeIterator.cs
- GridViewRowPresenter.cs
- AddInDeploymentState.cs
- SqlStatistics.cs
- ActiveXSite.cs
- HtmlFormParameterWriter.cs
- DataTableNewRowEvent.cs
- RawStylusInputCustomDataList.cs
- PartialCachingAttribute.cs
- DoubleAnimationUsingPath.cs
- WebPartDisplayModeCollection.cs
- PenThreadWorker.cs
- Mutex.cs
- TimeSpanStorage.cs
- XmlDocumentFragment.cs
- BindingExpression.cs
- DefaultValueMapping.cs
- CodeTypeReferenceExpression.cs
- TextFindEngine.cs
- CollectionViewGroupRoot.cs
- PageEventArgs.cs
- DbConvert.cs
- StreamResourceInfo.cs
- ListViewCancelEventArgs.cs
- WeakHashtable.cs
- ServiceProviders.cs
- _SSPISessionCache.cs
- File.cs
- MsmqSecureHashAlgorithm.cs
- BitmapEffect.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- StylusPointPropertyInfo.cs
- TypefaceMap.cs
- HGlobalSafeHandle.cs
- RoutingSection.cs
- UrlPropertyAttribute.cs
- PageRequestManager.cs
- PreservationFileWriter.cs
- DataServiceQueryException.cs
- Metadata.cs
- OleDbInfoMessageEvent.cs
- DetailsViewInsertEventArgs.cs
- ErrorWrapper.cs
- DPTypeDescriptorContext.cs