Boo.BooLangProject.BooProjectSources.GetSource C# (CSharp) Метод

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

Gets the contents of a file.
private GetSource ( string fileName ) : string
fileName string File to get the source of
Результат string
        private string GetSource(string fileName)
        {
            var source = languageService.GetSource(fileName);

            if (source != null)
            {
                // file is already open, get the unsaved source from there
                return source.GetText();
            }

            return File.ReadAllText(fileName);
        }