Core/Refactor: Part 1
This commit is contained in:
@@ -289,6 +289,9 @@ namespace System
|
||||
|
||||
public static int GetByteCount(this string str)
|
||||
{
|
||||
if (str.IsEmpty())
|
||||
return 0;
|
||||
|
||||
return Encoding.UTF8.GetByteCount(str);
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user