Fix pragma warning restore (dotnet/coreclr#26389)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / IO / IOException.cs
bloba22cc3bc48f8db40750db55bb8c5146b6c7e0035
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System.Runtime.Serialization;
7 namespace System.IO
9 [Serializable]
10 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11 public class IOException : SystemException
13 public IOException()
14 : base(SR.Arg_IOException)
16 HResult = HResults.COR_E_IO;
19 public IOException(string? message)
20 : base(message)
22 HResult = HResults.COR_E_IO;
25 public IOException(string? message, int hresult)
26 : base(message)
28 HResult = hresult;
31 public IOException(string? message, Exception? innerException)
32 : base(message, innerException)
34 HResult = HResults.COR_E_IO;
37 protected IOException(SerializationInfo info, StreamingContext context) : base(info, context)