Complete Class bug fix
This commit is contained in:
		| @ -77,7 +77,7 @@ internal class Point | ||||
|             string.Empty, | ||||
|             string.Empty); | ||||
|  | ||||
|     public static ReadOnlyCollection<Point> GetCollection(string[] lines, int take, string site, string multiple, string summaryLine, string lastUnits) | ||||
|     public static ReadOnlyCollection<Point> GetCollection(ReadOnlyCollection<string> lines, int take, string site, string multiple, string summaryLine, string lastUnitsB) | ||||
|     { | ||||
|         List<Point> results = new(); | ||||
|         string s; | ||||
| @ -89,7 +89,7 @@ internal class Point | ||||
|         bool foundB = false; | ||||
|         string[] segmentsC; | ||||
|         List<string> sites = new(); | ||||
|         for (int i = 0; i < lines.Length; i++) | ||||
|         for (int i = 0; i < lines.Count; i++) | ||||
|         { | ||||
|             line = lines[i]; | ||||
|             segmentsC = line.Split(new string[] { site }, StringSplitOptions.RemoveEmptyEntries); | ||||
| @ -107,7 +107,7 @@ internal class Point | ||||
|                 continue; | ||||
|             if (!foundB && line.Contains(multiple)) | ||||
|                 foundB = true; | ||||
|             if (line != lastUnits) | ||||
|             if (line != lastUnitsB) | ||||
|                 continue; | ||||
|             if (foundB) | ||||
|             { | ||||
| @ -117,7 +117,7 @@ internal class Point | ||||
|             for (int j = 0; j < sites.Count; j++) | ||||
|             { | ||||
|                 s = sites[j]; | ||||
|                 if (i + take > lines.Length) | ||||
|                 if (i + take > lines.Count) | ||||
|                     break; | ||||
|                 segments = s.Split(new string[] { "(", ",", ")" }, StringSplitOptions.None); | ||||
|                 if (segments.Length < 2) | ||||
| @ -154,4 +154,4 @@ internal class Point | ||||
| [JsonSerializable(typeof(Point))] | ||||
| internal partial class PointSourceGenerationContext : JsonSerializerContext | ||||
| { | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user