111,126
社区成员
发帖
与我相关
我的任务
分享
string s3 = new string(
Array.ConvertAll(
Array.FindAll(s2.Split('\\'),
new Predicate<string>(delegate(string s) {
return !string.IsNullOrEmpty(s);
})),
delegate(string s)
{
return (char)short.Parse(s.Replace("x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);
})
);

string s3 = new string(
s2.Split('\\').Skip(1).Select((o) =>
{
return (char)short.Parse(o.Replace("x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);
}).ToArray());
string s1 = @"\x00\x00\x00\x00\x00\x24\xea\x38";
s1 = s1.Replace("\\", @"\\");
MessageBox.Show(s1);