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( ExprList whenThenExpr )
: this(whenThenExpr, null)
{
}
///
/// Used to contruct case expression with else sub-expression
///
/// whenThen expression list
/// else expression
internal CaseExpr( ExprList whenThenExpr, Expr elseExpr )
{
_whenThenExpr = whenThenExpr;
_elseExpr = elseExpr;
}
///
/// Returns the list of WhenThen expressions
///
internal ExprList WhenThenExprList
{
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( ExprList whenThenExpr )
: this(whenThenExpr, null)
{
}
///
/// Used to contruct case expression with else sub-expression
///
/// whenThen expression list
/// else expression
internal CaseExpr( ExprList whenThenExpr, Expr elseExpr )
{
_whenThenExpr = whenThenExpr;
_elseExpr = elseExpr;
}
///
/// Returns the list of WhenThen expressions
///
internal ExprList WhenThenExprList
{
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
- ManagedFilter.cs
- Int32EqualityComparer.cs
- DocumentStatusResources.cs
- GeneralTransformGroup.cs
- SchemaObjectWriter.cs
- metrodevice.cs
- ProtocolsConfigurationHandler.cs
- Pkcs7Signer.cs
- EventLogEntry.cs
- HuffmanTree.cs
- MultipleViewProviderWrapper.cs
- SqlClientWrapperSmiStream.cs
- EntityTypeBase.cs
- CalloutQueueItem.cs
- EntityPropertyMappingAttribute.cs
- recordstatescratchpad.cs
- FormsAuthenticationEventArgs.cs
- Clipboard.cs
- LZCodec.cs
- ClientSettingsSection.cs
- ConfigXmlAttribute.cs
- Flowchart.cs
- XmlSchemaAppInfo.cs
- HttpInputStream.cs
- HostingEnvironmentSection.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- WorkflowServiceHost.cs
- FillBehavior.cs
- ProgressBar.cs
- DecimalAnimationUsingKeyFrames.cs
- FeatureSupport.cs
- DataRecordInfo.cs
- ProfessionalColors.cs
- InvokeHandlers.cs
- ColorBlend.cs
- Version.cs
- ScriptResourceAttribute.cs
- TextBox.cs
- ReversePositionQuery.cs
- BaseCodePageEncoding.cs
- AppModelKnownContentFactory.cs
- SymbolType.cs
- CompiledELinqQueryState.cs
- XmlSchemaSimpleContentRestriction.cs
- util.cs
- OleServicesContext.cs
- SqlBooleanMismatchVisitor.cs
- IsolatedStoragePermission.cs
- FeatureManager.cs
- HttpApplication.cs
- CertificateManager.cs
- StreamGeometry.cs
- PriorityRange.cs
- PermissionSetTriple.cs
- AutoGeneratedField.cs
- SqlDataSource.cs
- SiteMapProvider.cs
- URLAttribute.cs
- FontDriver.cs
- DesignerEventService.cs
- TextSerializer.cs
- StrongNameSignatureInformation.cs
- DefaultMemberAttribute.cs
- DependencyPropertyKind.cs
- ValidationSummary.cs
- PackageRelationship.cs
- Parameter.cs
- ItemContainerProviderWrapper.cs
- ParentQuery.cs
- TabletCollection.cs
- PagesSection.cs
- TcpChannelListener.cs
- TeredoHelper.cs
- CodeTypeReferenceCollection.cs
- RegexTree.cs
- SmiRequestExecutor.cs
- SafeThreadHandle.cs
- CornerRadius.cs
- LocalizationParserHooks.cs
- ContainerParaClient.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- CompositeScriptReferenceEventArgs.cs
- PropertyPathConverter.cs
- OutputScopeManager.cs
- SerializerWriterEventHandlers.cs
- StringDictionaryCodeDomSerializer.cs
- WmlControlAdapter.cs
- LabelDesigner.cs
- FacetValueContainer.cs
- TypeViewSchema.cs
- GatewayDefinition.cs
- Attributes.cs
- RecognizerStateChangedEventArgs.cs
- TimelineGroup.cs
- SystemIcmpV4Statistics.cs
- CmsInterop.cs
- IfJoinedCondition.cs
- StringResourceManager.cs
- SpanIndex.cs
- TablePattern.cs