整理代码
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Text;
|
||||
|
||||
namespace ShrlAlgo.RvKits.RvIndependent.MetroGauges.LandXMLData
|
||||
{
|
||||
public static class StringByteConversion
|
||||
{
|
||||
public static byte[] GetBytes(string str)
|
||||
{
|
||||
return Encoding.Default.GetBytes(str);
|
||||
}
|
||||
|
||||
public static string GetString(byte[] bytes)
|
||||
{
|
||||
return Encoding.Default.GetString(bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user