Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UpdateCommand.cs
- SamlAuthenticationStatement.cs
- PathFigureCollection.cs
- XmlCountingReader.cs
- DBAsyncResult.cs
- VerificationAttribute.cs
- ReceiveSecurityHeaderElementManager.cs
- NoResizeHandleGlyph.cs
- ArgumentDesigner.xaml.cs
- WebControl.cs
- RowsCopiedEventArgs.cs
- DESCryptoServiceProvider.cs
- ObjectStateEntry.cs
- HttpDebugHandler.cs
- InputLanguageSource.cs
- ServiceBusyException.cs
- WebServicesDescriptionAttribute.cs
- PointValueSerializer.cs
- WinFormsSecurity.cs
- SqlFlattener.cs
- ProcessHostFactoryHelper.cs
- RenderingBiasValidation.cs
- NavigationExpr.cs
- WindowsButton.cs
- Rotation3D.cs
- Stackframe.cs
- EncoderExceptionFallback.cs
- LessThanOrEqual.cs
- AmbiguousMatchException.cs
- SourceFileBuildProvider.cs
- ImplicitInputBrush.cs
- XpsFilter.cs
- XDRSchema.cs
- ResolveMatchesCD1.cs
- ToolboxCategoryItems.cs
- GenericIdentity.cs
- PageThemeCodeDomTreeGenerator.cs
- TabControlEvent.cs
- LogArchiveSnapshot.cs
- HatchBrush.cs
- _UriSyntax.cs
- SoapExtensionStream.cs
- DesignerForm.cs
- WindowsSpinner.cs
- ActivityExecutionContextCollection.cs
- ProgressBar.cs
- PopOutPanel.cs
- CornerRadius.cs
- OleDbRowUpdatingEvent.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MatrixUtil.cs
- OperationContext.cs
- XmlReaderSettings.cs
- LayoutEditorPart.cs
- XmlSchemaComplexType.cs
- SplashScreenNativeMethods.cs
- RenderCapability.cs
- GridViewUpdatedEventArgs.cs
- HttpResponse.cs
- TextTrailingCharacterEllipsis.cs
- ResourceAssociationType.cs
- DataListItemEventArgs.cs
- DisplayMemberTemplateSelector.cs
- SQLDoubleStorage.cs
- SimpleParser.cs
- DecimalKeyFrameCollection.cs
- XmlWrappingReader.cs
- SharedStatics.cs
- CriticalExceptions.cs
- EventRoute.cs
- MimePart.cs
- PrtCap_Reader.cs
- ThrowHelper.cs
- SessionStateModule.cs
- StyleBamlRecordReader.cs
- Compiler.cs
- ContentPlaceHolderDesigner.cs
- FontCollection.cs
- ItemCheckEvent.cs
- NodeFunctions.cs
- CorruptingExceptionCommon.cs
- TrailingSpaceComparer.cs
- UnsafeMethods.cs
- RegexMatch.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CustomAssemblyResolver.cs
- GradientSpreadMethodValidation.cs
- MemberHolder.cs
- DBConcurrencyException.cs
- DataSourceExpression.cs
- SqlDataRecord.cs
- HwndSource.cs
- GeometryCollection.cs
- Simplifier.cs
- InputProcessorProfilesLoader.cs
- XmlRootAttribute.cs
- HtmlControlPersistable.cs
- BamlRecordReader.cs
- sqlinternaltransaction.cs
- BuildProvider.cs