public static DiagnosticSection AddDiagnosticSectionFromConstant(string heading, Type type) { var section = new DiagnosticSection(heading); section.Diagnostics.AddRange(ReflectionHelper.PopulateDiagnosticsFromConstants(type)); return(section); }
public static DiagnosticSection AddDiagnosticSectionFrom(string heading, object obj, bool onlyUmbraco = true) { var section = new DiagnosticSection(heading); if (obj != null) { section.Diagnostics.AddRange(ReflectionHelper.PopulateDiagnosticsFrom(obj, onlyUmbraco)); } return(section); }
public static DiagnosticSection AddDiagnosticSectionFrom(string heading, Type type) { var section = new DiagnosticSection(heading); if (type != null) { foreach (var item in ReflectionHelper.GetTypesAssignableFrom(type)) { section.Diagnostics.Add(new Diagnostic(item.Name, item.GetFullNameWithAssembly())); } } return(section); }