示例#1
0
        internal static void GetMethodsReturningType(Type searchedType)
        {
            string[] dllsUnityEngine = TypeCounter.GetUnityEngineAssemblysNames();
            TypeBag  typebag         = new TypeBag();

            GetEverythingUsingChosenType(dllsUnityEngine, searchedType, ref typebag.allMethodsReturningChosenType, ref typebag.allMethodsWithParametersOfType,
                                         ref typebag.allPropertiesReturningChosenType, ref typebag.allFieldsReturningChosenType);

            PrintAllMethodsNames(typebag.allMethodsReturningChosenType, searchedType);
            PrintAllPropertiesNames(typebag.allPropertiesReturningChosenType, searchedType);
            PrintAllMethodsWithParametersOfType(typebag.allMethodsWithParametersOfType, searchedType);
            PrintAllFieldsNames(typebag.allFieldsReturningChosenType, searchedType);
        }
示例#2
0
        internal static void GetMethodsReturningTypeDotNet(Type searchedType)
        {
//			var assemblies = AppDomain.CurrentDomain.GetAssemblies ();
            var assembly = Assembly.GetAssembly(searchedType);

            string[] dllsUnityEngine2 = { assembly.GetName().Name };

            string[] dllsUnityEngine3 = TypeCounter.GetUnityEngineAssemblysNames();
            string[] dllsUnityEngine  = new string[dllsUnityEngine3.Length + dllsUnityEngine2.Length];
            Array.Copy(dllsUnityEngine2, dllsUnityEngine, dllsUnityEngine2.Length);
            Array.Copy(dllsUnityEngine3, 0, dllsUnityEngine, dllsUnityEngine2.Length, dllsUnityEngine3.Length);

            TypeBag typebag = new TypeBag();

            GetEverythingUsingChosenType(dllsUnityEngine, searchedType, ref typebag.allMethodsReturningChosenType, ref typebag.allMethodsWithParametersOfType,
                                         ref typebag.allPropertiesReturningChosenType, ref typebag.allFieldsReturningChosenType);

            PrintAllMethodsNames(typebag.allMethodsReturningChosenType, searchedType);
            PrintAllPropertiesNames(typebag.allPropertiesReturningChosenType, searchedType);
            PrintAllMethodsWithParametersOfType(typebag.allMethodsWithParametersOfType, searchedType);
            PrintAllFieldsNames(typebag.allFieldsReturningChosenType, searchedType);
        }