常用方法
常用方法
常用方法
常用方法
public void TestNullStringEncodeDecode2() { var objectDataOutput = _serializationService.CreateObjectDataOutput(256); objectDataOutput.WriteString(null); var bytes = objectDataOutput.ToByteArray(); var objectDataInput = _serializationService.CreateObjectDataInput(bytes); var decodedStr = objectDataInput.ReadString(); Assert.IsNull(decodedStr); }