mirror of
https://github.com/smyalygames/monopoly.git
synced 2025-05-18 14:24:12 +02:00
17 lines
290 B
C#
17 lines
290 B
C#
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
|
|
}
|
|
}
|
|
}
|