Bike.Interpreter.BikeImportContext.ImportBikeFile C# (CSharp) Метод

ImportBikeFile() приватный Метод

private ImportBikeFile ( string filePath, bool &alreadyImported ) : string
filePath string
alreadyImported bool
Результат string
        private string ImportBikeFile(string filePath, out bool alreadyImported)
        {
            lock (syncLock)
            {
                alreadyImported = true;
                if (!importedBikeFiles.Contains(filePath))
                {
                    importedBikeFiles.Add(filePath);
                    alreadyImported = false;
                }
                return filePath;
            }
        }

Same methods

BikeImportContext::ImportBikeFile ( string currentFolder, string filePath, bool &alreadyImported ) : string

Usage Example

Пример #1
0
 public string ImportFile(string path, out bool alreadyImport)
 {
     return(bikeImportContext.ImportBikeFile(CurrentExecFolder, path, out alreadyImport));
 }