IsHiddenAssembly() static private méthode

static private IsHiddenAssembly ( Assembly assembly ) : bool
assembly System.Reflection.Assembly
Résultat bool
Exemple #1
0
        private static bool SkipAssembly(Assembly assembly)
        {
            if (assembly == nlogAssembly)
            {
                return(true);
            }

            if (assembly == mscorlibAssembly)
            {
                return(true);
            }

            if (assembly == systemAssembly)
            {
                return(true);
            }

            if (LogManager.IsHiddenAssembly(assembly))
            {
                return(true);
            }

            return(false);
        }
Exemple #2
0
        /// <summary>
        /// Assembly to skip?
        /// </summary>
        /// <param name="frame">Find assembly via this frame. </param>
        /// <returns><c>true</c>, we should skip.</returns>
        private static bool SkipAssembly(StackFrame frame)
        {
            var assembly = StackTraceUsageUtils.LookupAssemblyFromStackFrame(frame);

            return(assembly == null || LogManager.IsHiddenAssembly(assembly));
        }