1
This commit is contained in:
20
Packages/Core/Utility/StringHelper.cs
Normal file
20
Packages/Core/Utility/StringHelper.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
public class StringHelper
|
||||
{
|
||||
public static byte[] GetBytes(string str )
|
||||
{
|
||||
return Encoding.UTF8.GetBytes( str );
|
||||
}
|
||||
public static string GetString(byte[] buffer)
|
||||
{
|
||||
return Encoding.UTF8.GetString(buffer);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user