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
- TraceEventCache.cs
- ControlParser.cs
- OAVariantLib.cs
- TreeNode.cs
- HtmlTableCellCollection.cs
- LinqDataSourceInsertEventArgs.cs
- BaseCAMarshaler.cs
- DynamicActivityTypeDescriptor.cs
- ProtocolsConfigurationEntry.cs
- AccessKeyManager.cs
- EntityTemplateUserControl.cs
- BitmapEncoder.cs
- TypeSystem.cs
- CompileLiteralTextParser.cs
- DataSvcMapFile.cs
- XmlSerializerSection.cs
- OleDbErrorCollection.cs
- BindingsCollection.cs
- XmlAttribute.cs
- ITreeGenerator.cs
- DataSourceControlBuilder.cs
- ScriptControlManager.cs
- GifBitmapDecoder.cs
- SafeNativeMethods.cs
- DataRow.cs
- SQLBytesStorage.cs
- Stackframe.cs
- XsltContext.cs
- Matrix3DValueSerializer.cs
- RecognizedAudio.cs
- ClaimTypes.cs
- PointHitTestParameters.cs
- HttpRequestCacheValidator.cs
- RemotingServices.cs
- exports.cs
- _KerberosClient.cs
- SoapEnumAttribute.cs
- ClickablePoint.cs
- ControlPropertyNameConverter.cs
- SchemaLookupTable.cs
- PermissionSetTriple.cs
- StrokeCollection2.cs
- StringAnimationBase.cs
- LinearKeyFrames.cs
- ArgumentException.cs
- SapiGrammar.cs
- SslStream.cs
- SoapInteropTypes.cs
- ValidationErrorEventArgs.cs
- AssemblyResourceLoader.cs
- Timer.cs
- CodeExporter.cs
- RemotingConfiguration.cs
- OutputCacheSettings.cs
- Timer.cs
- MarshalDirectiveException.cs
- HebrewNumber.cs
- TransactionInformation.cs
- ReadOnlyPermissionSet.cs
- BamlMapTable.cs
- RSAPKCS1SignatureFormatter.cs
- GlobalizationSection.cs
- ContainerActivationHelper.cs
- FixedPageAutomationPeer.cs
- LoadedOrUnloadedOperation.cs
- DataBoundControlActionList.cs
- TypeSource.cs
- DesignerLoader.cs
- MatrixTransform.cs
- Win32.cs
- OdbcConnectionFactory.cs
- CodeConditionStatement.cs
- SqlGatherProducedAliases.cs
- DoubleAnimationClockResource.cs
- WindowsTokenRoleProvider.cs
- Regex.cs
- ProcessHostServerConfig.cs
- CatalogZoneBase.cs
- InternalConfigHost.cs
- HttpDictionary.cs
- Debug.cs
- BitmapDownload.cs
- Parser.cs
- FixedSOMPageConstructor.cs
- MemberDescriptor.cs
- WpfPayload.cs
- _NestedSingleAsyncResult.cs
- CommentAction.cs
- WebResourceAttribute.cs
- XmlName.cs
- Accessible.cs
- QilStrConcatenator.cs
- ArrayExtension.cs
- ClientApiGenerator.cs
- Roles.cs
- SingleStorage.cs
- ImageMetadata.cs
- DecimalAnimationUsingKeyFrames.cs
- sqlser.cs
- StylusLogic.cs