public static string GetText()

in Older/ReSharper20183CSharp/CSharp7Features.cs [10:27]


        public static string GetText(string path, string filename)
        {
            using (var streamReader = File.OpenText(AppendPathSeparator(path) + filename))
            {
                var text = streamReader.ReadToEnd();
                return text;

            }
            string AppendPathSeparator(string filePath)
            {
                // 1. Introduce parameter
                // Select @"\", then invoke Refactor this Ctrl+Shift+R
                if (!filePath.EndsWith(value: @"\"))
                    filePath += @"\";

                return filePath;
            }
        }