0
0
RhSolutions-Api/RhSolutions.Api/Services/ThreadTPieceInternal.cs

21 lines
587 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Text.RegularExpressions;
namespace RhSolutions.Api.Services;
public class ThreadTPieceInternal : ThreadTPieceWall
{
protected override string ConstructName(MatchCollection diameters, Match thread)
{
Capture t = thread.Groups["Thread"].Captures.First();
if (diameters.Count == 1)
{
return $"Тройник с внутр. резьбой на боков. проходе {diameters[0]}-Rp {t}-{diameters[0]}";
}
else
{
return $"Тройник с внутр. резьбой на боков. проходе {diameters[0]}-Rp {t}-{diameters[1]}";
}
}
}