scripts
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace UnityEngine.Networking
|
||||
{
|
||||
// Token: 0x02000011 RID: 17
|
||||
internal static class DotNetCompatibility
|
||||
{
|
||||
// Token: 0x06000070 RID: 112 RVA: 0x00004C7C File Offset: 0x00002E7C
|
||||
internal static string GetMethodName(this Delegate func)
|
||||
{
|
||||
return func.Method.Name;
|
||||
}
|
||||
|
||||
// Token: 0x06000071 RID: 113 RVA: 0x00004C9C File Offset: 0x00002E9C
|
||||
internal static Type GetBaseType(this Type type)
|
||||
{
|
||||
return type.BaseType;
|
||||
}
|
||||
|
||||
// Token: 0x06000072 RID: 114 RVA: 0x00004CB8 File Offset: 0x00002EB8
|
||||
internal static string GetErrorCode(this SocketException e)
|
||||
{
|
||||
return e.ErrorCode.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user