首次提交
This commit is contained in:
11
Assets/Scripts/Common/Utils/Extends/StringExtends.cs
Normal file
11
Assets/Scripts/Common/Utils/Extends/StringExtends.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace NBF
|
||||
{
|
||||
public static class StringExtends
|
||||
{
|
||||
public static string GetLastString(this string str)
|
||||
{
|
||||
int lastIndex = str.LastIndexOf('_');
|
||||
return str.Substring(lastIndex + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user