Is there a better way to create acronym from upper letters in C#?

后端 未结 6 1489
日久生厌
日久生厌 2021-01-19 00:06

What is the best way to create acronym from upper letters in C#?

Example:

Alfa_BetaGameDelta_Epsilon

Expected r

6条回答
  •  执念已碎
    2021-01-19 00:45

    string test = "Alfa_BetaGameDelta_Epsilon";
    string result = string.Concat(test.Where(char.IsUpper));
    

提交回复
热议问题