Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / IO / EndOfStreamException.cs / 1 / EndOfStreamException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: EndOfStreamException
**
**
** Purpose: Exception to be thrown when reading past end-of-file.
**
**
===========================================================*/
using System;
using System.Runtime.Serialization;
namespace System.IO {
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class EndOfStreamException : IOException
{
public EndOfStreamException()
: base(Environment.GetResourceString("Arg_EndOfStreamException")) {
SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
}
public EndOfStreamException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
}
public EndOfStreamException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_ENDOFSTREAM);
}
protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationFileCodeDomTreeGenerator.cs
- RecognizerInfo.cs
- BitmapImage.cs
- ExpressionVisitor.cs
- SQLBytesStorage.cs
- XamlToRtfParser.cs
- BreakRecordTable.cs
- StringResourceManager.cs
- LoginCancelEventArgs.cs
- VisualBasicHelper.cs
- HtmlContainerControl.cs
- DataGridViewTextBoxColumn.cs
- BuilderPropertyEntry.cs
- Encoder.cs
- PageOutputQuality.cs
- ControlParameter.cs
- SystemIcons.cs
- InputLanguage.cs
- SQLInt16.cs
- SettingsContext.cs
- AnnotationDocumentPaginator.cs
- InfoCardSymmetricCrypto.cs
- DataGridHeaderBorder.cs
- AnnotationHelper.cs
- SystemInfo.cs
- SkewTransform.cs
- RijndaelCryptoServiceProvider.cs
- RemotingServices.cs
- XhtmlTextWriter.cs
- BuildResult.cs
- HebrewCalendar.cs
- CodeSubDirectory.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- TextElementEditingBehaviorAttribute.cs
- ConstructorExpr.cs
- FontStretch.cs
- TreeView.cs
- TimeSpanOrInfiniteValidator.cs
- WebServiceErrorEvent.cs
- RadioButtonStandardAdapter.cs
- Speller.cs
- SettingsSection.cs
- StorageEntitySetMapping.cs
- LeftCellWrapper.cs
- Identifier.cs
- QuaternionIndependentAnimationStorage.cs
- entityreference_tresulttype.cs
- LineUtil.cs
- ModelProperty.cs
- CellRelation.cs
- XmlSchemaProviderAttribute.cs
- GridViewCellAutomationPeer.cs
- CompilationLock.cs
- TypeDescriptor.cs
- ValueOfAction.cs
- ObjectDataSourceStatusEventArgs.cs
- SerialStream.cs
- DataGridViewCellValueEventArgs.cs
- ContravarianceAdapter.cs
- UrlPropertyAttribute.cs
- ProfileEventArgs.cs
- ColumnMapCopier.cs
- TextFormatter.cs
- CrossSiteScriptingValidation.cs
- BaseParser.cs
- StandardTransformFactory.cs
- MessageBodyDescription.cs
- SelectorAutomationPeer.cs
- ToolTipService.cs
- SecurityContextSecurityToken.cs
- DoubleKeyFrameCollection.cs
- GeneralTransform3D.cs
- TextDocumentView.cs
- ApplicationSettingsBase.cs
- AnnotationResourceChangedEventArgs.cs
- NamedPermissionSet.cs
- FormCollection.cs
- WebSysDisplayNameAttribute.cs
- EntityReference.cs
- ModifiableIteratorCollection.cs
- IImplicitResourceProvider.cs
- AssemblyCache.cs
- FragmentQuery.cs
- InkCanvasFeedbackAdorner.cs
- SqlGenerator.cs
- TimeoutException.cs
- ObjectTokenCategory.cs
- NamespaceTable.cs
- FastPropertyAccessor.cs
- DataSourceControl.cs
- TextShapeableCharacters.cs
- TypeHelper.cs
- HtmlHistory.cs
- FontCacheLogic.cs
- ListViewItem.cs
- SamlSubjectStatement.cs
- PermissionSetEnumerator.cs
- Paragraph.cs
- ManifestBasedResourceGroveler.cs
- DataControlFieldHeaderCell.cs