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( 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
- ThreadSafeList.cs
- TreeChangeInfo.cs
- CatalogPart.cs
- NavigationPropertyEmitter.cs
- MailBnfHelper.cs
- CompositeDataBoundControl.cs
- ZipIOLocalFileBlock.cs
- CompilerResults.cs
- EventLogException.cs
- ReadContentAsBinaryHelper.cs
- ViewStateModeByIdAttribute.cs
- LineBreak.cs
- BindingsSection.cs
- StylusPointProperties.cs
- SplashScreenNativeMethods.cs
- ExtensionDataObject.cs
- DesignColumnCollection.cs
- SqlBinder.cs
- ByteAnimationBase.cs
- Point.cs
- NetworkInformationPermission.cs
- EntityTransaction.cs
- TreeWalkHelper.cs
- ObjectComplexPropertyMapping.cs
- ImageAutomationPeer.cs
- Misc.cs
- ImageSource.cs
- XmlAttributeOverrides.cs
- NameSpaceExtractor.cs
- DataGridViewMethods.cs
- XmlDataImplementation.cs
- RangeValidator.cs
- SafeRightsManagementPubHandle.cs
- _NegoStream.cs
- BaseTemplateBuildProvider.cs
- CaseCqlBlock.cs
- SerialPinChanges.cs
- DataSourceControlBuilder.cs
- FileSecurity.cs
- CompModSwitches.cs
- KeysConverter.cs
- DecoderReplacementFallback.cs
- CroppedBitmap.cs
- LogManagementAsyncResult.cs
- Models.cs
- ClientSettings.cs
- XmlILOptimizerVisitor.cs
- SetUserPreferenceRequest.cs
- DefaultSerializationProviderAttribute.cs
- Attachment.cs
- WebControl.cs
- HttpRequest.cs
- EmptyStringExpandableObjectConverter.cs
- Vector3DCollectionConverter.cs
- CheckBoxStandardAdapter.cs
- IPEndPointCollection.cs
- Transactions.cs
- Trustee.cs
- Psha1DerivedKeyGeneratorHelper.cs
- NetworkInterface.cs
- MergeFailedEvent.cs
- WriteLine.cs
- ConfigurationSectionCollection.cs
- RelationshipDetailsRow.cs
- ClassGenerator.cs
- TreeNodeBindingCollection.cs
- ErrorsHelper.cs
- FileDialog.cs
- SettingsProviderCollection.cs
- BindingSource.cs
- ConfigurationProperty.cs
- TabPanel.cs
- GenerateTemporaryTargetAssembly.cs
- COM2ColorConverter.cs
- CaretElement.cs
- HashMembershipCondition.cs
- ConvertEvent.cs
- HeaderedContentControl.cs
- RemotingHelper.cs
- MetaModel.cs
- SafeNativeMethodsOther.cs
- TextFormatterImp.cs
- StorageScalarPropertyMapping.cs
- OpenTypeMethods.cs
- BinHexEncoder.cs
- ItemChangedEventArgs.cs
- TextSyndicationContentKindHelper.cs
- FlowLayoutPanel.cs
- BuilderPropertyEntry.cs
- ModelItemImpl.cs
- WorkflowDesignerColors.cs
- WindowsPrincipal.cs
- SqlDataSourceSelectingEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- TimeSpanOrInfiniteConverter.cs
- RijndaelManaged.cs
- DefaultValueMapping.cs
- PlatformCulture.cs
- ToolStripMenuItemCodeDomSerializer.cs
- PageCodeDomTreeGenerator.cs