Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1305376 / _NestedSingleAsyncResult.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { // // The NestedAsyncResult - used to wrap async requests // this is used to hold another async result made // through a call to another Begin call within. // internal class NestedSingleAsyncResult : LazyAsyncResult { // // this is usually for operations on streams/buffers, // we save information passed in on the Begin call: // since some calls might need several completions, we // need to save state on the user's IO request // internal byte[] Buffer; internal int Offset; internal int Size; // // Constructors // // Completed in advance. internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, object result) : base(asyncObject, asyncState, asyncCallback, result) { } internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, byte[] buffer, int offset, int size) : base( asyncObject, asyncState, asyncCallback ) { Buffer = buffer; Offset = offset; Size = size; } }; // class NestedAsyncResult } // namespace System.Net // 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
- Object.cs
- IPAddress.cs
- IdentityHolder.cs
- DrawingImage.cs
- ConnectionsZone.cs
- MenuItemAutomationPeer.cs
- SQLMoneyStorage.cs
- FatalException.cs
- WebBrowserContainer.cs
- InputScopeAttribute.cs
- ActivationServices.cs
- ConfigViewGenerator.cs
- ScrollProperties.cs
- MediaContext.cs
- DocumentPaginator.cs
- CompositeCollection.cs
- GC.cs
- VirtualizingStackPanel.cs
- TypeDescriptorContext.cs
- SrgsElementFactory.cs
- StylusEventArgs.cs
- MessageFormatterConverter.cs
- AppDomainFactory.cs
- AssemblyNameUtility.cs
- DataGridViewMethods.cs
- DataGridViewToolTip.cs
- XDeferredAxisSource.cs
- ControlTemplate.cs
- MissingMethodException.cs
- TransactionScope.cs
- BaseDataBoundControl.cs
- ACL.cs
- GridViewDeleteEventArgs.cs
- Deflater.cs
- ParseChildrenAsPropertiesAttribute.cs
- SqlGenericUtil.cs
- References.cs
- BindableAttribute.cs
- DesignBindingPropertyDescriptor.cs
- ToolStripControlHost.cs
- LinearQuaternionKeyFrame.cs
- EntryWrittenEventArgs.cs
- SchemaType.cs
- CatalogPartDesigner.cs
- MarkupObject.cs
- SqlUDTStorage.cs
- InternalConfirm.cs
- ResourceSetExpression.cs
- selecteditemcollection.cs
- ToolStrip.cs
- OleDragDropHandler.cs
- ViewBase.cs
- CodeConstructor.cs
- VisualCollection.cs
- BindingsSection.cs
- SafeThreadHandle.cs
- CodeAccessSecurityEngine.cs
- RegexWriter.cs
- QueryGenerator.cs
- MessageSecurityException.cs
- CodeTypeMemberCollection.cs
- DataViewSettingCollection.cs
- PointAnimation.cs
- CalendarDay.cs
- XmlSchemaElement.cs
- DbProviderServices.cs
- Symbol.cs
- TextBoxRenderer.cs
- ClientFormsAuthenticationCredentials.cs
- TerminatorSinks.cs
- SpeechSeg.cs
- NoneExcludedImageIndexConverter.cs
- TypeLibConverter.cs
- BuilderPropertyEntry.cs
- DataGridViewAdvancedBorderStyle.cs
- BrowserCapabilitiesCodeGenerator.cs
- StateMachine.cs
- XmlSchemaDatatype.cs
- EventLogEntry.cs
- UnionExpr.cs
- SurrogateSelector.cs
- NextPreviousPagerField.cs
- BmpBitmapEncoder.cs
- Hashtable.cs
- IDQuery.cs
- SemanticAnalyzer.cs
- SQLChars.cs
- SQLMembershipProvider.cs
- XmlDataImplementation.cs
- ConfigurationValue.cs
- CFStream.cs
- IPipelineRuntime.cs
- QuaternionIndependentAnimationStorage.cs
- Context.cs
- EventPrivateKey.cs
- FileDialogCustomPlace.cs
- StrongNameSignatureInformation.cs
- AccessedThroughPropertyAttribute.cs
- DebuggerAttributes.cs
- TypeDescriptionProviderAttribute.cs