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
- XPathBinder.cs
- SmtpSection.cs
- SortKey.cs
- WebBrowsableAttribute.cs
- AncillaryOps.cs
- AsyncStreamReader.cs
- ParagraphResult.cs
- ButtonStandardAdapter.cs
- FtpCachePolicyElement.cs
- XmlSchemaNotation.cs
- MasterPageParser.cs
- DependencyObjectType.cs
- TriState.cs
- WmlCommandAdapter.cs
- RenameRuleObjectDialog.Designer.cs
- IntSecurity.cs
- FixedPosition.cs
- ResizingMessageFilter.cs
- XmlLangPropertyAttribute.cs
- AncestorChangedEventArgs.cs
- ColorPalette.cs
- HashRepartitionEnumerator.cs
- RMEnrollmentPage2.cs
- HostingPreferredMapPath.cs
- CanonicalXml.cs
- CellTreeNodeVisitors.cs
- ITreeGenerator.cs
- HandlerBase.cs
- DetailsViewInsertEventArgs.cs
- ObjectParameterCollection.cs
- WaitHandleCannotBeOpenedException.cs
- StructuredTypeEmitter.cs
- CommandID.cs
- WebPartCatalogAddVerb.cs
- ProfileProvider.cs
- FreezableCollection.cs
- CachedPathData.cs
- EntityDataSourceContainerNameConverter.cs
- ByteStreamGeometryContext.cs
- WmlObjectListAdapter.cs
- PositiveTimeSpanValidatorAttribute.cs
- DataTableNewRowEvent.cs
- HwndProxyElementProvider.cs
- SQLDateTimeStorage.cs
- sqlpipe.cs
- Rotation3DAnimationUsingKeyFrames.cs
- HwndAppCommandInputProvider.cs
- CodeLinePragma.cs
- TypeDescriptor.cs
- ObjectListGeneralPage.cs
- SchemaName.cs
- SmtpDigestAuthenticationModule.cs
- ToolStripHighContrastRenderer.cs
- DataListItemCollection.cs
- WindowHideOrCloseTracker.cs
- BlockCollection.cs
- SendMessageRecord.cs
- ContextMenu.cs
- CommentEmitter.cs
- TemplatedWizardStep.cs
- SimpleLine.cs
- KnownColorTable.cs
- XmlQueryStaticData.cs
- TableAdapterManagerHelper.cs
- DataGridCellsPresenter.cs
- XhtmlBasicValidationSummaryAdapter.cs
- Panel.cs
- wmiutil.cs
- DocumentViewer.cs
- StorageSetMapping.cs
- StreamHelper.cs
- DateTimeOffsetStorage.cs
- InvalidFilterCriteriaException.cs
- HitTestWithPointDrawingContextWalker.cs
- UrlPath.cs
- XmlWhitespace.cs
- ToolStripContentPanel.cs
- RegexRunner.cs
- NavigationWindow.cs
- DefaultAsyncDataDispatcher.cs
- TaskFormBase.cs
- DirectoryNotFoundException.cs
- GacUtil.cs
- UnsafeNativeMethods.cs
- XmlBinaryReader.cs
- CookielessHelper.cs
- SkewTransform.cs
- BuildProviderAppliesToAttribute.cs
- OpenTypeLayoutCache.cs
- CommonProperties.cs
- KeyMatchBuilder.cs
- Encoder.cs
- SafeFileMapViewHandle.cs
- InputScopeConverter.cs
- ExpressionBinding.cs
- EventTrigger.cs
- BmpBitmapDecoder.cs
- TableRowGroup.cs
- RoleServiceManager.cs
- ResourceContainer.cs