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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDataSourceValidationException.cs
- XmlSchemaSimpleTypeUnion.cs
- TemplateBindingExtensionConverter.cs
- DataObjectPastingEventArgs.cs
- FreeFormDragDropManager.cs
- PackagePart.cs
- CustomGrammar.cs
- SqlProvider.cs
- DecoderExceptionFallback.cs
- XPathDocumentNavigator.cs
- SchemaMapping.cs
- SignatureDescription.cs
- LocatorPartList.cs
- String.cs
- BitStream.cs
- UnsafeNativeMethods.cs
- Codec.cs
- ObjectCache.cs
- ToolStripCollectionEditor.cs
- TextEditorTables.cs
- XmlIncludeAttribute.cs
- WSSecureConversation.cs
- TypographyProperties.cs
- ContextProperty.cs
- SystemIPv6InterfaceProperties.cs
- ObjectQuery.cs
- ProofTokenCryptoHandle.cs
- WorkflowDesignerColors.cs
- GridItemPatternIdentifiers.cs
- WaitForChangedResult.cs
- BrowserCapabilitiesCompiler.cs
- BulletChrome.cs
- WizardForm.cs
- CallInfo.cs
- IssuanceTokenProviderState.cs
- XmlSchemaCompilationSettings.cs
- MarkerProperties.cs
- XmlSchemaObjectCollection.cs
- CalendarTable.cs
- DefaultHttpHandler.cs
- XmlTypeMapping.cs
- AuthStoreRoleProvider.cs
- DBNull.cs
- Identity.cs
- RelationshipFixer.cs
- CloseSequence.cs
- ComponentSerializationService.cs
- TypedElement.cs
- WsatServiceAddress.cs
- securitycriticaldataClass.cs
- GridPattern.cs
- MethodExpr.cs
- SplitterPanel.cs
- WebRequestModulesSection.cs
- RequestStatusBarUpdateEventArgs.cs
- AnnotationService.cs
- HijriCalendar.cs
- HttpServerVarsCollection.cs
- ResourcePool.cs
- ListSortDescription.cs
- DESCryptoServiceProvider.cs
- SmtpException.cs
- BaseTemplateParser.cs
- FontStretches.cs
- AutomationPropertyInfo.cs
- Quaternion.cs
- DataControlFieldCollection.cs
- OleDbDataAdapter.cs
- EncryptedPackageFilter.cs
- InheritanceAttribute.cs
- TreeWalkHelper.cs
- HyperLinkField.cs
- FileClassifier.cs
- ToolstripProfessionalRenderer.cs
- PkcsUtils.cs
- ComponentDispatcher.cs
- ButtonAutomationPeer.cs
- StylusPlugin.cs
- XPathParser.cs
- Switch.cs
- ComponentResourceManager.cs
- ParserOptions.cs
- VariableQuery.cs
- UriTemplateMatch.cs
- DocumentApplication.cs
- ChangeTracker.cs
- EmptyStringExpandableObjectConverter.cs
- AppSettingsReader.cs
- RuntimeIdentifierPropertyAttribute.cs
- CompositeCollectionView.cs
- FocusWithinProperty.cs
- ClientCultureInfo.cs
- DriveInfo.cs
- ComplexPropertyEntry.cs
- VirtualPath.cs
- ConstructorBuilder.cs
- CopyAttributesAction.cs
- TextEditor.cs
- StyleReferenceConverter.cs
- AmbientValueAttribute.cs