79207074

Date: 2024-11-20 11:54:30
Score: 1
Natty:
Report link

Short answer (requires c#8):

string? NormalizeLength(string value, int maxLength)
{
    return value?.PadRight(maxLength)[..maxLength].Trim();
} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Raúl Diego