Projbook.Extension.DefaultSnippetExtractor.LoadFile C# (CSharp) Méthode

LoadFile() protected méthode

Loads a file from the file name.
fileInfo
protected LoadFile ( string fullFilename ) : string
fullFilename string The full filename.
Résultat string
        protected string LoadFile(string fullFilename)
        {
            if(string.IsNullOrEmpty(fullFilename))
            {
                throw new ArgumentNullException(nameof(fullFilename));
            }
            return File.ReadAllText(fullFilename, Encoding.UTF8);
        }
DefaultSnippetExtractor