public WriteBinaryString ( string str ) : void | ||
str | string | |
return | void |
public static byte[] SerializeToBytes(this string str) { using (var m = new MemoryStream()) { using (var w = new SerializingBinaryWriter(m)) w.WriteBinaryString(str); return m.ToArray(); } }
public static byte[] SerializeToBytes(this string str) { using (var m = new MemoryStream()) { using (var w = new SerializingBinaryWriter(m)) w.WriteBinaryString(str); return m.ToArray(); } }