Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / EndOfStreamException.cs / 1305376 / 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);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// 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
- ValidationErrorInfo.cs
- TemplateControlParser.cs
- File.cs
- TrackingLocationCollection.cs
- Encoder.cs
- CultureInfoConverter.cs
- MulticastIPAddressInformationCollection.cs
- ShortcutKeysEditor.cs
- StrokeCollection.cs
- JpegBitmapDecoder.cs
- Marshal.cs
- TcpPortSharing.cs
- HttpHandlersSection.cs
- NavigationWindow.cs
- DataTableCollection.cs
- InvokeGenerator.cs
- EFColumnProvider.cs
- LinkClickEvent.cs
- Geometry.cs
- WebPartConnectionsConnectVerb.cs
- ClientConfigurationSystem.cs
- SignerInfo.cs
- MaterialGroup.cs
- FullTrustAssembliesSection.cs
- Debug.cs
- UserPreferenceChangedEventArgs.cs
- EdgeProfileValidation.cs
- NumericUpDownAcceleration.cs
- XmlNamespaceMappingCollection.cs
- GuidTagList.cs
- CodeCatchClauseCollection.cs
- AutomationIdentifierGuids.cs
- NeutralResourcesLanguageAttribute.cs
- FormatVersion.cs
- AspCompat.cs
- HttpResponse.cs
- HierarchicalDataTemplate.cs
- AppSettingsExpressionBuilder.cs
- XPathDocumentBuilder.cs
- StylusPointCollection.cs
- GradientSpreadMethodValidation.cs
- ObjectListDataBindEventArgs.cs
- ToolStripKeyboardHandlingService.cs
- TextBox.cs
- HtmlTextArea.cs
- HashJoinQueryOperatorEnumerator.cs
- XmlNavigatorFilter.cs
- ZoneMembershipCondition.cs
- ListViewCommandEventArgs.cs
- WorkflowApplication.cs
- AnnotationAuthorChangedEventArgs.cs
- TextBoxAutomationPeer.cs
- UnsafeNativeMethods.cs
- BasicViewGenerator.cs
- TransportationConfigurationTypeInstallComponent.cs
- ZipIOModeEnforcingStream.cs
- Comparer.cs
- XmlWrappingWriter.cs
- Freezable.cs
- XmlILStorageConverter.cs
- Opcode.cs
- SessionStateItemCollection.cs
- RuleSet.cs
- BindingSource.cs
- PointConverter.cs
- VoiceChangeEventArgs.cs
- EntityDataSourceView.cs
- OnOperation.cs
- TransformCryptoHandle.cs
- ResourceLoader.cs
- ImageCollectionEditor.cs
- FormViewDeletedEventArgs.cs
- ConfigXmlWhitespace.cs
- StringReader.cs
- WebCategoryAttribute.cs
- DataSetViewSchema.cs
- Source.cs
- Image.cs
- ProvideValueServiceProvider.cs
- OrderByExpression.cs
- SqlInternalConnectionSmi.cs
- SystemIcmpV6Statistics.cs
- Panel.cs
- Pair.cs
- TextPointer.cs
- SHA256.cs
- ContainsRowNumberChecker.cs
- WebReference.cs
- WebEventCodes.cs
- XsltException.cs
- SerializationEventsCache.cs
- IListConverters.cs
- FormViewInsertedEventArgs.cs
- RequestDescription.cs
- IConvertible.cs
- EntitySetBase.cs
- AsymmetricAlgorithm.cs
- TextContainerHelper.cs
- Size.cs
- SessionStateItemCollection.cs