Beispiel #1
0
 static bool IsValid(Callback callback)
 {
     System.Delegate d = callback as System.Delegate;
     return(d != null && d.GetMethodInfo() != null);
 }
Beispiel #2
0
        /// <summary>
        /// GetMethodName is not supported on some platforms.
        /// </summary>

#if REFLECTION_SUPPORT
#if !UNITY_EDITOR && NETFX_CORE
        static string GetMethodName(Callback callback)
        {
            System.Delegate d = callback as System.Delegate;
            return(d.GetMethodInfo().Name);
        }