UnityEditor.ASEditorBackend.Testing_Invoke C# (CSharp) Method

Testing_Invoke() private static method

private static Testing_Invoke ( string klass, string method ) : void
klass string
method string
return void
        private static void Testing_Invoke(string klass, string method, params object[] prms)
        {
            try
            {
                foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
                {
                    if ((assembly.GetName().Name != "UnityEditor") && (assembly.GetName().Name != "UnityEngine"))
                    {
                        foreach (System.Type type in AssemblyHelper.GetTypesFromAssembly(assembly))
                        {
                            if (type.Name == klass)
                            {
                                type.InvokeMember(method, BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static, null, null, prms);
                            }
                        }
                    }
                }
            }
            catch (Exception exception)
            {
                if ((exception.InnerException != null) && (exception.InnerException.GetType() == typeof(ExitGUIException)))
                {
                    throw exception;
                }
                object[] objArray1 = new object[] { exception };
                Testing_Invoke(AssetServer.GetString("s_ExceptionHandlerClass"), AssetServer.GetString("s_ExceptionHandlerFunction"), objArray1);
            }
        }

Usage Example

Ejemplo n.º 1
0
 public static void Testing_DummyConflictResolutionFunction(string[] conflicting)
 {
     ASEditorBackend.Testing_Invoke(ASEditorBackend.s_TestingConflictResClass, ASEditorBackend.s_TestingConflictResFunction, new object[]
     {
         conflicting
     });
 }
All Usage Examples Of UnityEditor.ASEditorBackend::Testing_Invoke