C# Interpolated string with a maximum field width

后端 未结 0 370
清歌不尽
清歌不尽 2020-12-01 02:33

Looking for suggestions for improvement.

Given a string, which could be null, limit the total length to 20 characters:

$"{value?.Substring(0, Math         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题