TaiZhouCangChu_VRanime/Library/PackageCache/com.unity.multiplayer-hlapi.../Runtime/DotNetCompatibility.cs

26 lines
561 B
C#

using System;
using System.Collections.Generic;
using System.Reflection;
using System.Net.Sockets;
namespace UnityEngine.Networking
{
internal static class DotNetCompatibility
{
internal static string GetMethodName(this Delegate func)
{
return func.Method.Name;
}
internal static Type GetBaseType(this Type type)
{
return type.BaseType;
}
internal static string GetErrorCode(this SocketException e)
{
return e.ErrorCode.ToString();
}
}
}