GetDefaultLocalizationFilePath() public static method

public static GetDefaultLocalizationFilePath ( String basePath, Assembly assembly ) : String
basePath String
assembly System.Reflection.Assembly
return String
示例#1
0
 public void WriteDefaultLocalizationData()
 {
     foreach (var a in LocalizationAssemblyHelper.GetLocalizedAssemblies())
     {
         var data = LocalizationAssemblyHelper.GetDefaultLocalizationData(a, providers);
         using (var xw = new XmlTextWriter(XmlPathUtil.GetDefaultLocalizationFilePath(Path, a), Encoding.UTF8))
         {
             xw.Formatting = Formatting.Indented;
             data.WriteXml(xw);
         }
     }
 }
示例#2
0
 public static void WriteDefaultLocalizationData(String outputDirectoryPath, IEnumerable <ILocalizationDataProvider> providers)
 {
     foreach (var a in LocalizationAssemblyHelper.GetLocalizedAssemblies())
     {
         var data = LocalizationAssemblyHelper.GetDefaultLocalizationData(a, providers);
         using (var xw = new XmlTextWriter(XmlPathUtil.GetDefaultLocalizationFilePath(outputDirectoryPath, a), Encoding.UTF8))
         {
             xw.Formatting = Formatting.Indented;
             data.WriteXml(xw);
         }
     }
 }