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
- BamlVersionHeader.cs
- ElementUtil.cs
- ImageConverter.cs
- BitmapFrameDecode.cs
- Itemizer.cs
- FlowSwitchDesigner.xaml.cs
- GlyphTypeface.cs
- InputReportEventArgs.cs
- EpmSourcePathSegment.cs
- DefaultDiscoveryService.cs
- SqlConnectionFactory.cs
- ImageMapEventArgs.cs
- XmlSubtreeReader.cs
- HintTextMaxWidthConverter.cs
- RoleGroupCollection.cs
- WorkflowOperationBehavior.cs
- Rss20FeedFormatter.cs
- BitmapCodecInfoInternal.cs
- Assert.cs
- ConfigurationCollectionAttribute.cs
- PlaceHolder.cs
- QilStrConcat.cs
- TextWriterEngine.cs
- WorkflowDebuggerSteppingAttribute.cs
- PackagePart.cs
- SourceSwitch.cs
- ExternalException.cs
- MetaTableHelper.cs
- PageThemeParser.cs
- PixelShader.cs
- TreeNodeConverter.cs
- ArgumentOutOfRangeException.cs
- TextEditorTables.cs
- LambdaCompiler.Address.cs
- Annotation.cs
- EntityCommandCompilationException.cs
- WebPartDisplayModeEventArgs.cs
- FileInfo.cs
- SoapSchemaMember.cs
- SqlTransaction.cs
- ProfileService.cs
- FaultDescription.cs
- DescriptionAttribute.cs
- _SslState.cs
- FileUpload.cs
- cryptoapiTransform.cs
- LambdaCompiler.Binary.cs
- _ChunkParse.cs
- TriggerBase.cs
- EventNotify.cs
- FreeFormDesigner.cs
- Types.cs
- NavigationHelper.cs
- DragDrop.cs
- PhonemeEventArgs.cs
- PkcsMisc.cs
- GenericIdentity.cs
- XmlDataImplementation.cs
- HttpRequestCacheValidator.cs
- XamlFigureLengthSerializer.cs
- ToolStripDropDownMenu.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- URLMembershipCondition.cs
- Polygon.cs
- PrimaryKeyTypeConverter.cs
- GiveFeedbackEvent.cs
- MemberBinding.cs
- GZipStream.cs
- XmlSchemaInferenceException.cs
- ActivityInstanceReference.cs
- UdpUtility.cs
- SiteMapHierarchicalDataSourceView.cs
- TemplateBaseAction.cs
- PlainXmlWriter.cs
- AssemblyName.cs
- ReversePositionQuery.cs
- Wow64ConfigurationLoader.cs
- ListControlDesigner.cs
- InternalCache.cs
- ExceptionTrace.cs
- ExpressionPrefixAttribute.cs
- SourceFileInfo.cs
- CustomErrorsSectionWrapper.cs
- QueryResults.cs
- DropSource.cs
- ServicesUtilities.cs
- XmlHierarchicalEnumerable.cs
- ProfessionalColors.cs
- AmbiguousMatchException.cs
- CompositeCollectionView.cs
- SafeRegistryHandle.cs
- SqlMethodTransformer.cs
- XmlCharCheckingWriter.cs
- DataIdProcessor.cs
- BuildResultCache.cs
- AutoCompleteStringCollection.cs
- SourceFileBuildProvider.cs
- TimeSpanStorage.cs
- NumericUpDown.cs
- Command.cs