Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / TypedAsyncResult.cs / 1305376 / TypedAsyncResult.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.Runtime { abstract class TypedAsyncResult: AsyncResult { T data; public TypedAsyncResult(AsyncCallback callback, object state) : base(callback, state) { } public T Data { get { return data; } } protected void Complete(T data, bool completedSynchronously) { this.data = data; Complete(completedSynchronously); } public static T End(IAsyncResult result) { TypedAsyncResult completedResult = AsyncResult.End >(result); return completedResult.Data; } } } // 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
- Trace.cs
- StorageModelBuildProvider.cs
- Point.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataColumnPropertyDescriptor.cs
- DotExpr.cs
- GridViewDeletedEventArgs.cs
- securitycriticaldata.cs
- EmptyQuery.cs
- BitmapSourceSafeMILHandle.cs
- SplineQuaternionKeyFrame.cs
- InfoCardTraceRecord.cs
- ConnectionsZone.cs
- StrongNameUtility.cs
- ManagementQuery.cs
- TdsParserStaticMethods.cs
- CaseInsensitiveComparer.cs
- DataGridViewImageCell.cs
- Invariant.cs
- QilChoice.cs
- localization.cs
- XmlAttributes.cs
- BitmapEffectInput.cs
- RelatedPropertyManager.cs
- UnsafeNativeMethodsCLR.cs
- PersonalizationProviderHelper.cs
- Cursors.cs
- ExtendedPropertyCollection.cs
- BinaryWriter.cs
- DataGridRelationshipRow.cs
- MachineKeySection.cs
- PropertyTabChangedEvent.cs
- PowerModeChangedEventArgs.cs
- FormViewUpdateEventArgs.cs
- ToolBarDesigner.cs
- NativeCppClassAttribute.cs
- PropertyChangedEventManager.cs
- TcpSocketManager.cs
- RuntimeUtils.cs
- UnmanagedMarshal.cs
- MasterPageBuildProvider.cs
- AcceleratedTokenAuthenticator.cs
- MetricEntry.cs
- WebServiceParameterData.cs
- ObjectItemLoadingSessionData.cs
- XmlBinaryReader.cs
- Clause.cs
- PtsPage.cs
- PropertyGrid.cs
- TraceSection.cs
- OleDbParameter.cs
- PageRouteHandler.cs
- CmsUtils.cs
- TableItemStyle.cs
- UDPClient.cs
- WebPartActionVerb.cs
- XmlValidatingReaderImpl.cs
- ImageMapEventArgs.cs
- TextReader.cs
- SafeHandles.cs
- counter.cs
- AncillaryOps.cs
- ListViewInsertedEventArgs.cs
- SchemaElementLookUpTable.cs
- UriParserTemplates.cs
- ProcessModelInfo.cs
- ResourcesGenerator.cs
- HttpStreamFormatter.cs
- ComponentChangingEvent.cs
- PasswordTextNavigator.cs
- CodeThrowExceptionStatement.cs
- ParamArrayAttribute.cs
- GrammarBuilderWildcard.cs
- XmlSerializerSection.cs
- DataServiceRequestException.cs
- CompositeFontFamily.cs
- ArgumentReference.cs
- HtmlButton.cs
- DiscoveryCallbackBehavior.cs
- HtmlInputPassword.cs
- ToolBarButton.cs
- CachedRequestParams.cs
- ObjectAnimationBase.cs
- TextTreeExtractElementUndoUnit.cs
- ParserContext.cs
- User.cs
- CanonicalizationDriver.cs
- EditorAttribute.cs
- SetterTriggerConditionValueConverter.cs
- _TLSstream.cs
- SQLBoolean.cs
- KeyEvent.cs
- RsaKeyIdentifierClause.cs
- MailMessage.cs
- PasswordBoxAutomationPeer.cs
- DirectoryGroupQuery.cs
- CommandID.cs
- WindowsClientElement.cs
- EventBuilder.cs
- Vector.cs