Ignore:
Timestamp:
Aug 1, 2022, 12:26:44 PM (2 years ago)
Author:
alloc
Message:

Made SpaceWizards.HttpListener compilable against .NET 4.8 with preprocessor define UNITY_NETFRAMEWORK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/SpaceWizards.HttpListener/src/System/Threading/Tasks/TaskToApm.cs

    r376 r377  
    1111//     public int EndFoo(IAsyncResult asyncResult) =>
    1212//         TaskToApm.End<int>(asyncResult);
     13
     14// ReSharper disable RedundantUsingDirective
     15// ReSharper disable ConvertTypeCheckPatternToNullCheck
     16// ReSharper disable ConditionIsAlwaysTrueOrFalse
     17#pragma warning disable CS8602
     18#pragma warning disable CS8601
     19#pragma warning disable CS8618
    1320
    1421#nullable enable
     
    6471
    6572        /// <summary>Throws an argument exception for the invalid <paramref name="asyncResult"/>.</summary>
     73#if !UNITY_NETFRAMEWORK
    6674        [DoesNotReturn]
     75#endif
    6776        private static void ThrowArgumentException(IAsyncResult asyncResult) =>
    6877            throw (asyncResult is null ?
Note: See TracChangeset for help on using the changeset viewer.