FlagDuplicates
CA1510 Complete
This commit is contained in:
@ -10,15 +10,6 @@ namespace Adaptation.FileHandlers.pcl;
|
||||
#nullable enable
|
||||
|
||||
internal class SummarySegment
|
||||
// internal record SummarySegment([property: JsonPropertyName("Navg")] string NAvg,
|
||||
// [property: JsonPropertyName("Nsl")] string Nsl,
|
||||
// [property: JsonPropertyName("Vd")] string Vd,
|
||||
// [property: JsonPropertyName("@ Flat Z")] string FlatZ,
|
||||
// [property: JsonPropertyName("Rhoavg")] string RhoAvg,
|
||||
// [property: JsonPropertyName("Rhosl")] string Rhosl,
|
||||
// [property: JsonPropertyName("Phase")] string Phase,
|
||||
// [property: JsonPropertyName("Grade")] string Grade,
|
||||
// [property: JsonPropertyName("@ Rs")] string Rs)
|
||||
{
|
||||
|
||||
public SummarySegment(string nAvg, string nsl, string vd, string flatZ, string rhoAvg, string rhosl, string phase, string grade, string rs)
|
||||
@ -66,7 +57,7 @@ internal class SummarySegment
|
||||
return new(results);
|
||||
}
|
||||
|
||||
public static Summary? Get(ReadOnlyCollection<string> lines, string site, string summaryLine, string lastUnits)
|
||||
public static Summary? Get(Constant constant, ReadOnlyCollection<string> lines)
|
||||
{
|
||||
Summary? result;
|
||||
string json;
|
||||
@ -79,13 +70,13 @@ internal class SummarySegment
|
||||
ReadOnlyCollection<JsonProperty> jsonProperties = GetJsonProperties();
|
||||
foreach (string line in lines)
|
||||
{
|
||||
if (line == summaryLine)
|
||||
if (line == constant.SummaryLine)
|
||||
found = true;
|
||||
if (!found)
|
||||
continue;
|
||||
if (line.Contains(site))
|
||||
if (line.Contains(constant.Site))
|
||||
break;
|
||||
if (line.Contains(lastUnits))
|
||||
if (line.Contains(constant.LastUnits))
|
||||
break;
|
||||
foreach (JsonProperty jsonProperty in jsonProperties)
|
||||
{
|
||||
|
Reference in New Issue
Block a user