} // 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
} // private JSONFixupEngine prevents construction of uninitialized instances /// <summary> /// String argument <paramref name="pstrFixupsPairsResourceFileName"/> /// guarantees that the constructed instance is initialized. /// </summary> /// <param name="pstrFixupsPairsResourceFileName"> /// String containing the unqualified name of the embedded resource file /// from which the private StringFixups.StringFixup array is initialized /// </param> public JSONFixupEngine ( string pstrFixupsPairsResourceFileName ) { _fIsFirstPass = true; StringFixups.StringFixup [ ] stringFixups = LoadStringFixups ( pstrFixupsPairsResourceFileName ); _responseStringFixups = new StringFixups ( stringFixups ); } // public JSONFixupEngine constructor returns an initialized instance