コード例 #1
0
 private string SearchBestMatchedMasterFileName(string fileNamePrefix)
 {
     for (ushort version = PlatformConfiguration.GetCurrentAPIVersion(); version >= 2; version--)
     {
         string fileName = string.Format("{0}-{1}.xml", fileNamePrefix, version);
         if (MasterFileStorage.IsMasterFilePresent(fileName))
         {
             return(fileName);
         }
     }
     {
         string fileName = fileNamePrefix + ".xml";
         if (MasterFileStorage.IsMasterFilePresent(fileName))
         {
             return(fileName);
         }
     }
     return(null);
 }
コード例 #2
0
 private string GetExpectedMasterFileName(string fileNamePrefix)
 {
     return(string.Format("{0}-{1}.xml", fileNamePrefix, PlatformConfiguration.GetCurrentAPIVersion()));
 }