Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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) {
}
}
}
// 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);
}
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
- UrlParameterWriter.cs
- Triplet.cs
- CngAlgorithmGroup.cs
- OdbcDataAdapter.cs
- HttpRuntimeSection.cs
- ArgumentValueSerializer.cs
- StrongNameSignatureInformation.cs
- ComplexObject.cs
- RNGCryptoServiceProvider.cs
- ProcessHostFactoryHelper.cs
- ComponentDispatcherThread.cs
- ByteStream.cs
- MonthCalendar.cs
- CachingHintValidation.cs
- EntityExpressionVisitor.cs
- ToolboxSnapDragDropEventArgs.cs
- Converter.cs
- ChildDocumentBlock.cs
- XmlSchemaSimpleTypeList.cs
- PersonalizationDictionary.cs
- WebPartTransformerAttribute.cs
- ComponentEditorForm.cs
- ResetableIterator.cs
- ApplicationDirectory.cs
- WebPartEditorCancelVerb.cs
- ObjectDisposedException.cs
- DataSourceProvider.cs
- ClientEventManager.cs
- EntityDataSourceSelectingEventArgs.cs
- DateTimeConverter.cs
- HttpTransportSecurityElement.cs
- FixedFindEngine.cs
- JsonGlobals.cs
- tooltip.cs
- MachineKey.cs
- ResumeStoryboard.cs
- ServiceParser.cs
- SafeNativeMethods.cs
- CacheMemory.cs
- baseaxisquery.cs
- Domain.cs
- RuntimeResourceSet.cs
- SessionStateItemCollection.cs
- CapabilitiesAssignment.cs
- FilteredDataSetHelper.cs
- TimeManager.cs
- ActivityCodeDomSerializer.cs
- PriorityItem.cs
- HebrewCalendar.cs
- CatalogZone.cs
- ListenerAdaptersInstallComponent.cs
- FrameAutomationPeer.cs
- QueryableDataSourceEditData.cs
- Baml2006ReaderFrame.cs
- HitTestParameters.cs
- ApplicationManager.cs
- SafeSecurityHandles.cs
- URLString.cs
- RubberbandSelector.cs
- ImageConverter.cs
- FontUnitConverter.cs
- UrlPropertyAttribute.cs
- TableSectionStyle.cs
- InkCanvasAutomationPeer.cs
- Qualifier.cs
- Slider.cs
- XMLDiffLoader.cs
- SystemInformation.cs
- Activity.cs
- RegexTypeEditor.cs
- odbcmetadatacolumnnames.cs
- Parser.cs
- ResourceWriter.cs
- EventLogEntryCollection.cs
- CompModSwitches.cs
- EncryptedType.cs
- StateMachineDesignerPaint.cs
- InputElement.cs
- CodeCastExpression.cs
- InheritanceAttribute.cs
- serverconfig.cs
- WebHttpDispatchOperationSelector.cs
- ObjectManager.cs
- Track.cs
- PtsContext.cs
- IMembershipProvider.cs
- ExtendedPropertyCollection.cs
- WSTrust.cs
- FunctionQuery.cs
- TableTextElementCollectionInternal.cs
- LassoHelper.cs
- XmlSerializerVersionAttribute.cs
- SQLBinaryStorage.cs
- ReferenceTypeElement.cs
- TripleDESCryptoServiceProvider.cs
- DES.cs
- DataMemberAttribute.cs
- ConfigurationConverterBase.cs
- ResourceIDHelper.cs
- DictionaryCustomTypeDescriptor.cs