/// <summary> /// Reads the entire file and returns the contents as a string. /// </summary> /// <param name="file">The file.</param> /// <returns>A string representing the contents of the file.</returns> public static string ReadAllText(AFile file) { Exceptions.NotNullException<AFile>(file, nameof(file)); return file.ReadAll(); }