static void LogInfoAboutAllPropertiesInClass(Type searchedType) { List <PropertyInfo> propertyInfos = searchedType.GetProperties().ToList(); if (propertyInfos.Count > 0) { Debug.Log("<b> <color=#483D8BFF>" + "PROPERTIES:</color><color=#CD1426></color><color=#483D8BFF></color></b>"); Debug.Log(" "); foreach (var pi in propertyInfos) { if (!TypeFinder.IsObsolete(pi) && IsDeclarationType(searchedType, pi) && IsMethodNotFromSystemObject(pi.Name)) { LogTypesToConsolePI(pi.PropertyType.Name, pi.Name); } } Debug.Log(" "); } }
static void LogInfoAboutAllFieldsInClass(Type searchedType) { List <FieldInfo> fieldInfos = searchedType.GetFields().ToList(); if (fieldInfos.Count > 0) { Debug.Log("<b> <color=#483D8BFF>" + "FIELDS:</color><color=#CD1426></color><color=#483D8BFF></color></b>"); Debug.Log(" "); foreach (var fi in fieldInfos) { if (!TypeFinder.IsObsolete(fi) && IsDeclarationType(searchedType, fi) && IsMethodNotFromSystemObject(fi.Name)) { LogTypesToConsoleFI(fi.FieldType.Name, fi.Name); } } Debug.Log(" "); } }
static bool IsCorrectMethodForLog(MethodInfo mi, Type searchedType) { return(IsMethodNotFromSystemObject(mi.Name) && IsDeclarationType(searchedType, mi) && (!TypeFinder.IsObsolete(mi))); }