Applitools.Utils.CommonUtils.ReadResourceFile C# (CSharp) Method

ReadResourceFile() public static method

public static ReadResourceFile ( string filename ) : string
filename string
return string
        public static string ReadResourceFile(string filename)
        {
            Assembly thisAssembly = Assembly.GetCallingAssembly();
            using (Stream stream = thisAssembly.GetManifestResourceStream(filename))
            using (StreamReader reader = new StreamReader(stream))
            {
                return reader.ReadToEnd();
            }
        }