Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ClientRoleProvider.cs
- InstallerTypeAttribute.cs
- DrawingState.cs
- TrustManagerMoreInformation.cs
- basemetadatamappingvisitor.cs
- HelloMessageApril2005.cs
- WizardForm.cs
- XamlInterfaces.cs
- TextDecorationCollection.cs
- ConnectionString.cs
- WebPartTransformerCollection.cs
- GlyphInfoList.cs
- RuleSettings.cs
- BrowsableAttribute.cs
- FileClassifier.cs
- PersistChildrenAttribute.cs
- Fonts.cs
- ActivityAction.cs
- XmlSchemaDocumentation.cs
- DbParameterHelper.cs
- MulticastNotSupportedException.cs
- DoubleLink.cs
- WSDualHttpBindingCollectionElement.cs
- querybuilder.cs
- DataGridViewCellConverter.cs
- Graph.cs
- ProgressBar.cs
- StylusCaptureWithinProperty.cs
- ShapeTypeface.cs
- SimpleTextLine.cs
- StrongNameKeyPair.cs
- Publisher.cs
- XsdDateTime.cs
- DateTimeConverter2.cs
- Calendar.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PreservationFileReader.cs
- SortedList.cs
- CodeExpressionRuleDeclaration.cs
- securestring.cs
- Baml6Assembly.cs
- WindowsFormsHostPropertyMap.cs
- PriorityItem.cs
- ControlPersister.cs
- HttpServerChannel.cs
- RequestSecurityToken.cs
- Identifier.cs
- UnsafeNativeMethods.cs
- StrokeIntersection.cs
- DataGridViewCellStateChangedEventArgs.cs
- RSACryptoServiceProvider.cs
- PasswordRecovery.cs
- OperationInvokerBehavior.cs
- VisualProxy.cs
- DataFormats.cs
- CallbackTimeoutsElement.cs
- FocusTracker.cs
- ConnectivityStatus.cs
- CaseStatement.cs
- SyndicationFeedFormatter.cs
- DesignSurface.cs
- WorkflowDefinitionDispenser.cs
- PostBackOptions.cs
- PeerCollaboration.cs
- RectangleGeometry.cs
- MimeTypeMapper.cs
- MessageQueueKey.cs
- FontCollection.cs
- HtmlListAdapter.cs
- ObjectHandle.cs
- SecurityTokenProvider.cs
- Point3D.cs
- XmlSchemaComplexContent.cs
- SqlAliaser.cs
- OperationAbortedException.cs
- ProviderUtil.cs
- XmlAnyAttributeAttribute.cs
- EmptyQuery.cs
- SqlComparer.cs
- MimeBasePart.cs
- NativeMethods.cs
- PropertyManager.cs
- XamlGridLengthSerializer.cs
- DataViewManager.cs
- PropertyStore.cs
- PropertyGeneratedEventArgs.cs
- X509CertificateChain.cs
- ApplicationSecurityManager.cs
- BuildResult.cs
- DotExpr.cs
- HighlightComponent.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- HttpWebRequestElement.cs
- PiiTraceSource.cs
- CompilerWrapper.cs
- CustomExpression.cs
- MaskedTextBox.cs
- RegexCompilationInfo.cs
- Context.cs
- UserControl.cs