Ejemplo n.º 1
0
        public static DiagnosticSection AddDiagnosticSectionFromConstant(string heading, Type type)
        {
            var section = new DiagnosticSection(heading);

            section.Diagnostics.AddRange(ReflectionHelper.PopulateDiagnosticsFromConstants(type));

            return(section);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }