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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZeroOpNode.cs
- StoreAnnotationsMap.cs
- XmlSignificantWhitespace.cs
- SafeNativeHandle.cs
- Tag.cs
- ListMarkerSourceInfo.cs
- TdsParser.cs
- RectangleF.cs
- KeySplineConverter.cs
- ServiceActivationException.cs
- validation.cs
- DataSetViewSchema.cs
- SmtpAuthenticationManager.cs
- PartialCachingControl.cs
- DbConnectionPoolGroup.cs
- ConditionedDesigner.cs
- ToolStripItemCollection.cs
- EdmProperty.cs
- WebEvents.cs
- DataGridViewRowPrePaintEventArgs.cs
- DescendentsWalker.cs
- CodeTypeReferenceExpression.cs
- TextEndOfSegment.cs
- PrintController.cs
- ScrollableControl.cs
- TextAnchor.cs
- FreezableDefaultValueFactory.cs
- ClaimSet.cs
- HttpMethodAttribute.cs
- MetadataStore.cs
- InputMethodStateChangeEventArgs.cs
- ProfileBuildProvider.cs
- Exceptions.cs
- TaiwanLunisolarCalendar.cs
- FrameworkName.cs
- XhtmlCssHandler.cs
- StorageConditionPropertyMapping.cs
- TabRenderer.cs
- VersionedStreamOwner.cs
- safemediahandle.cs
- MultipartIdentifier.cs
- ObjectSet.cs
- StorageFunctionMapping.cs
- DataSvcMapFile.cs
- DateTimeFormatInfo.cs
- PropertyDescriptorCollection.cs
- SqlInternalConnection.cs
- Typeface.cs
- UnsafeNativeMethods.cs
- PreviewPageInfo.cs
- ImpersonationContext.cs
- GeometryValueSerializer.cs
- WorkflowDebuggerSteppingAttribute.cs
- HwndKeyboardInputProvider.cs
- ToolStripContentPanelRenderEventArgs.cs
- LogPolicy.cs
- C14NUtil.cs
- DataViewManager.cs
- ProjectionRewriter.cs
- OracleTimeSpan.cs
- HitTestParameters3D.cs
- odbcmetadatafactory.cs
- ModelFunction.cs
- NGCSerializer.cs
- CustomErrorCollection.cs
- UnsafeNativeMethods.cs
- XAMLParseException.cs
- ProgressBarRenderer.cs
- XPathSingletonIterator.cs
- TextDpi.cs
- QueryHandler.cs
- ResourceReader.cs
- Rotation3DAnimationUsingKeyFrames.cs
- FileUpload.cs
- MenuAutoFormat.cs
- FigureHelper.cs
- ContractComponent.cs
- WorkflowShape.cs
- GradientSpreadMethodValidation.cs
- HttpDebugHandler.cs
- RegisteredScript.cs
- SafeBitVector32.cs
- TemplatedAdorner.cs
- ToolStripContentPanel.cs
- WorkflowRuntimeServicesBehavior.cs
- SHA512CryptoServiceProvider.cs
- ApplicationActivator.cs
- MissingManifestResourceException.cs
- NumericUpDown.cs
- SevenBitStream.cs
- ZipPackagePart.cs
- HostedTransportConfigurationManager.cs
- SpecialNameAttribute.cs
- Profiler.cs
- PersonalizationAdministration.cs
- UrlParameterReader.cs
- RoutedEventValueSerializer.cs
- XsltContext.cs
- StreamWithDictionary.cs
- UpdateCommand.cs