/// <summary>Initializes a new instance of the <see cref="BlacklistElements"/> struct.</summary>
        /// <param name="assemblyLocation">The assembly location.</param>
        public BlacklistElements(string assemblyLocation)
        {
            // Initialize variables
            Location = assemblyLocation;
            RootName = TypesUtil.DefaultNamespace(assemblyLocation);

            // Declare default blacklist filter item namespaces
            Namespaces = new List <string>
            {
                $@"{RootName}.Properties"
            };

            // Declare default blacklist filter item types
            Types = new List <string>
            {
                $@"{RootName}.Properties",
                $@"{RootName}.Settings"
            };
        }
Exemplo n.º 2
0
 /// <summary>Resolves the root namespace.</summary>
 /// <param name="assembly">The assembly.</param>
 /// <returns>The <see cref="Assembly"/>.</returns>
 public static string ResolveRootNamespace(this Assembly assembly)
 {
     return(TypesUtil.DefaultNamespace(assembly));
 }