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/Net/WebHeaderEncoding.cs

    r376 r377  
    11// Licensed to the .NET Foundation under one or more agreements.
    22// The .NET Foundation licenses this file to you under the MIT license.
     3
     4// ReSharper disable RedundantUsingDirective
    35
    46using System.Diagnostics;
     
    1416    internal static class WebHeaderEncoding
    1517    {
     18       
     19#if !UNITY_NETFRAMEWORK
    1620        internal static unsafe string GetString(byte[] bytes, int byteIndex, int byteCount)
    1721        {
     
    5357            });
    5458        }
    55 
     59#endif
     60       
    5661        internal static int GetByteCount(string myString) => myString.Length;
    5762
Note: See TracChangeset for help on using the changeset viewer.