1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-29 01:44:19 +00:00
better-tee/Assets/Old/Packages/Mirror/Runtime/DotNetCompatibility.cs

17 lines
290 B
C#
Raw Normal View History

2019-09-17 15:43:32 +00:00
using System;
namespace Mirror
{
internal static class DotNetCompatibility
{
internal static string GetMethodName(this Delegate func)
{
#if NETFX_CORE
return func.GetMethodInfo().Name;
#else
return func.Method.Name;
#endif
}
}
}