} // public static string GetAssemblyAppDataDirectoryName /// <summary> /// Get the AssemblyCompany property, which usually contains spaces, and /// often commas and other invalid characters, and either remove them or /// replace them with underscores. /// </summary> /// Pass in a reference to the Assembly for which assembly attributes are /// wanted, or pass NULL to get the metadata from the entry assembly. /// <returns> /// The string returned by this method is the string representation of /// the value of AttributeFriendlyName.Company as it was recorded in /// AssemblyInfo.cs of the assembly specified by <paramref name="pasm"/>, /// with commas, underscores, single quotes, hyphens, and spaces replaced /// by underscores, and sequential underscores reduced to one. /// </returns> public static string GetAssemblyCompanyNameSnakeCased ( Assembly pasm = null ) { string strAssemblyCompany = GetAssemblyVersionInfo ( AttributeFriendlyName.Company , // AttributeFriendlyName penmAttributeFriendlyName pasm ); // Assembly pasm = null StringFixups fixups = new StringFixups ( s_fixups ); return fixups.ApplyFixups ( strAssemblyCompany ); } // public static string GetAssemblyCompanyNameSnakeCased