Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Mail / SmtpReplyReader.cs / 1305376 / SmtpReplyReader.cs
namespace System.Net.Mail { using System; using System.IO; //streams are read only; return of 0 means end of server's reply class SmtpReplyReader { SmtpReplyReaderFactory reader; internal SmtpReplyReader(SmtpReplyReaderFactory reader) { this.reader = reader; } internal IAsyncResult BeginReadLines(AsyncCallback callback, object state) { return reader.BeginReadLines(this, callback, state); } internal IAsyncResult BeginReadLine(AsyncCallback callback, object state) { return reader.BeginReadLine(this, callback, state); } public void Close() { reader.Close(this); } internal LineInfo[] EndReadLines(IAsyncResult result) { return reader.EndReadLines(result); } internal LineInfo EndReadLine(IAsyncResult result) { return reader.EndReadLine(result); } internal LineInfo[] ReadLines() { return reader.ReadLines(this); } internal LineInfo ReadLine() { return reader.ReadLine(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Net.Mail { using System; using System.IO; //streams are read only; return of 0 means end of server's reply class SmtpReplyReader { SmtpReplyReaderFactory reader; internal SmtpReplyReader(SmtpReplyReaderFactory reader) { this.reader = reader; } internal IAsyncResult BeginReadLines(AsyncCallback callback, object state) { return reader.BeginReadLines(this, callback, state); } internal IAsyncResult BeginReadLine(AsyncCallback callback, object state) { return reader.BeginReadLine(this, callback, state); } public void Close() { reader.Close(this); } internal LineInfo[] EndReadLines(IAsyncResult result) { return reader.EndReadLines(result); } internal LineInfo EndReadLine(IAsyncResult result) { return reader.EndReadLine(result); } internal LineInfo[] ReadLines() { return reader.ReadLines(this); } internal LineInfo ReadLine() { return reader.ReadLine(this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrePostDescendentsWalker.cs
- HtmlEmptyTagControlBuilder.cs
- SmiRequestExecutor.cs
- MessageEventSubscriptionService.cs
- XmlDocumentSerializer.cs
- SystemResources.cs
- StaticResourceExtension.cs
- Color.cs
- ExpressionBindingCollection.cs
- GridViewDeletedEventArgs.cs
- CompoundFileIOPermission.cs
- PerfService.cs
- HttpRequest.cs
- RadioButton.cs
- LocationReference.cs
- TextParaClient.cs
- EntityProviderFactory.cs
- Pair.cs
- AssemblyName.cs
- httpserverutility.cs
- DataGridColumnsPage.cs
- VirtualDirectoryMappingCollection.cs
- RenderContext.cs
- DiscoveryMessageSequenceGenerator.cs
- EventLogPermission.cs
- UndoManager.cs
- HttpStreamXmlDictionaryWriter.cs
- GatewayDefinition.cs
- GroupBox.cs
- TypeGeneratedEventArgs.cs
- Int32EqualityComparer.cs
- DoubleMinMaxAggregationOperator.cs
- VideoDrawing.cs
- BasicExpressionVisitor.cs
- BaseTemplateBuildProvider.cs
- CfgParser.cs
- DataList.cs
- PrimitiveSchema.cs
- SoapReflector.cs
- LogLogRecordEnumerator.cs
- ObjectItemCachedAssemblyLoader.cs
- RSAPKCS1SignatureFormatter.cs
- BlurBitmapEffect.cs
- ConfigsHelper.cs
- SSmlParser.cs
- SessionStateUtil.cs
- NumericUpDownAcceleration.cs
- LogPolicy.cs
- ObjectViewQueryResultData.cs
- OleDbTransaction.cs
- DropSource.cs
- NativeMethods.cs
- AddInIpcChannel.cs
- DbParameterCollectionHelper.cs
- QilTargetType.cs
- EpmTargetPathSegment.cs
- ServerIdentity.cs
- HttpApplication.cs
- NullableIntMinMaxAggregationOperator.cs
- CollectionChangedEventManager.cs
- ResourceDictionary.cs
- StatusBarDrawItemEvent.cs
- ThaiBuddhistCalendar.cs
- WindowManager.cs
- RoleServiceManager.cs
- EventManager.cs
- CompilationLock.cs
- CellTreeNode.cs
- AlignmentYValidation.cs
- DetailsViewDeleteEventArgs.cs
- ValueQuery.cs
- StreamMarshaler.cs
- TextMetrics.cs
- PageStatePersister.cs
- XmlQueryCardinality.cs
- TreePrinter.cs
- BitmapMetadataEnumerator.cs
- Pair.cs
- SQLByte.cs
- PipelineModuleStepContainer.cs
- UInt32.cs
- PageParser.cs
- ObjRef.cs
- MessageProperties.cs
- Activator.cs
- DbDataSourceEnumerator.cs
- MsmqBindingMonitor.cs
- ToolstripProfessionalRenderer.cs
- CompoundFileStorageReference.cs
- WebPartZoneCollection.cs
- CalendarDayButton.cs
- SearchForVirtualItemEventArgs.cs
- httpapplicationstate.cs
- FileDialog.cs
- WebBrowserUriTypeConverter.cs
- ThemeDictionaryExtension.cs
- AssemblyBuilderData.cs
- XmlSchemaObjectTable.cs
- DTCTransactionManager.cs
- ToolStripOverflowButton.cs