FlagDuplicates
CA1510 Complete
This commit is contained in:
@ -1,10 +1,36 @@
|
||||
namespace Adaptation.FileHandlers.QS408M;
|
||||
|
||||
#nullable enable
|
||||
|
||||
public class Footer
|
||||
{
|
||||
|
||||
public string Line { get; set; }
|
||||
public string RadialVariationThickness { get; set; }
|
||||
public string Slot { get; set; }
|
||||
public Footer(string line, string radialVariationThickness, string slot)
|
||||
{
|
||||
Line = line;
|
||||
RadialVariationThickness = radialVariationThickness;
|
||||
Slot = slot;
|
||||
}
|
||||
|
||||
public string Line { get; }
|
||||
public string RadialVariationThickness { get; }
|
||||
public string Slot { get; }
|
||||
|
||||
internal static Footer? Get(string text, int[] i)
|
||||
{
|
||||
Footer? result;
|
||||
_ = Complete.GetToEOL(text, i);
|
||||
_ = Complete.GetToEOL(text, i);
|
||||
string line = Complete.GetToEOL(text, i);
|
||||
i[0] = Complete.ScanPast(text, i, "thickness");
|
||||
string radialVariationThickness = Complete.GetToEOL(text, i);
|
||||
_ = Complete.GetToEOL(text, i);
|
||||
i[0] = Complete.ScanPast(text, i, "Slot:");
|
||||
string slot = Complete.GetBefore(text, i, ";");
|
||||
result = new(line,
|
||||
radialVariationThickness,
|
||||
slot);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user