Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / ActivityWithResultWrapper.cs / 1305376 / ActivityWithResultWrapper.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities { using System.Collections.Generic; using System.Runtime; // This wrapper is used to make our "new Expression" and "new Default" APIs // work correctly even if the expression set on the base class doesn't // match. We'll log the error at cache metadata time. class ActivityWithResultWrapper: CodeActivity , Argument.IExpressionWrapper { ActivityWithResult expression; public ActivityWithResultWrapper(ActivityWithResult expression) { this.expression = expression; } ActivityWithResult Argument.IExpressionWrapper.InnerExpression { get { return this.expression; } } protected override void CacheMetadata(CodeActivityMetadata metadata) { // If we've gotten here then argument validation has already // logged a validation error. } protected override T Execute(CodeActivityContext context) { Fx.Assert("We'll never get here!"); return default(T); } } } // 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
- TreeNodeConverter.cs
- ListenerElementsCollection.cs
- WebPartConnectionsEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- XpsDocument.cs
- SmiSettersStream.cs
- AutomationPatternInfo.cs
- TransformerTypeCollection.cs
- GregorianCalendar.cs
- SimpleModelProvider.cs
- UtilityExtension.cs
- AssemblyAttributes.cs
- CmsInterop.cs
- BufferedStream.cs
- LinearKeyFrames.cs
- ScrollViewerAutomationPeer.cs
- SmtpClient.cs
- UIElementParagraph.cs
- MemoryStream.cs
- DebugManager.cs
- ProcessStartInfo.cs
- ConfigurationElement.cs
- SHA384Managed.cs
- EncryptedKeyIdentifierClause.cs
- DataServices.cs
- ParagraphResult.cs
- ObjectQueryState.cs
- SystemPens.cs
- SqlExpander.cs
- HwndMouseInputProvider.cs
- ChtmlTextBoxAdapter.cs
- KnownTypesProvider.cs
- Win32.cs
- ToolBarTray.cs
- SlipBehavior.cs
- X509Certificate2.cs
- DataTableCollection.cs
- IDReferencePropertyAttribute.cs
- filewebrequest.cs
- WindowsUpDown.cs
- ArrayListCollectionBase.cs
- FillRuleValidation.cs
- FindCriteriaElement.cs
- UnauthorizedWebPart.cs
- RequestCachePolicy.cs
- StateMachineSubscription.cs
- DataGridCheckBoxColumn.cs
- AnimationException.cs
- SpeechRecognitionEngine.cs
- WaitHandle.cs
- PageMediaSize.cs
- DynamicQueryableWrapper.cs
- ContainerParagraph.cs
- _SSPISessionCache.cs
- EllipseGeometry.cs
- MarkupCompilePass2.cs
- NullRuntimeConfig.cs
- ImageMapEventArgs.cs
- RadioButton.cs
- MsmqInputChannelBase.cs
- ToolboxComponentsCreatedEventArgs.cs
- XmlUrlResolver.cs
- PropertyPathWorker.cs
- ToolBarOverflowPanel.cs
- TwoPhaseCommit.cs
- SafeSecurityHandles.cs
- PolyLineSegment.cs
- ColorKeyFrameCollection.cs
- DocumentXPathNavigator.cs
- EntitySqlQueryCacheEntry.cs
- FontEditor.cs
- FileDialog.cs
- WindowsToolbarAsMenu.cs
- XPathAncestorQuery.cs
- FrameAutomationPeer.cs
- DataGridViewRowPostPaintEventArgs.cs
- HttpModulesSection.cs
- EncoderBestFitFallback.cs
- MobileControlPersister.cs
- Aggregates.cs
- _FtpControlStream.cs
- DispatcherOperation.cs
- VisualStateGroup.cs
- SqlEnums.cs
- validation.cs
- RoutingChannelExtension.cs
- RtfNavigator.cs
- DelegatingConfigHost.cs
- SetStoryboardSpeedRatio.cs
- ITreeGenerator.cs
- TableLayoutColumnStyleCollection.cs
- SafeArrayTypeMismatchException.cs
- DataColumn.cs
- FixedStringLookup.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- DataGridViewElement.cs
- TransportChannelListener.cs
- Transform3D.cs
- _NestedSingleAsyncResult.cs
- NonDualMessageSecurityOverHttpElement.cs