diff --git a/src/FileParser/Implementations/ParsedFile.cs b/src/FileParser/Implementations/ParsedFile.cs index 78623eb..a223daa 100644 --- a/src/FileParser/Implementations/ParsedFile.cs +++ b/src/FileParser/Implementations/ParsedFile.cs @@ -42,7 +42,9 @@ public ParsedFile(string path, char[] existingSeparator) /// FilePath /// Word separator (space by default) public ParsedFile(string path, string? existingSeparator = null) +#pragma warning disable CS0618 // Type or member is obsolete - will keep it as private : base(ParseFile(path, existingSeparator)) +#pragma warning restore CS0618 // Type or member is obsolete { } @@ -211,6 +213,7 @@ public static List> ReadAllGroupsOfLines(string path) /// /// /// + [Obsolete("This method exposes internal functionality and was made public accidentally. It will be removed in next major release, please used ParsedFile constructor instead.")] public static Queue ParseFile(string path, string? existingSeparator = null) { Queue parsedFile = new();