[Modify] Use it

This commit is contained in:
sta 2016-10-03 16:00:21 +09:00
parent 6c8f033a28
commit 0b07b08ad0

View File

@ -101,14 +101,7 @@ namespace WebSocketSharp
/// </value>
public string Data {
get {
if (!_dataSet) {
_data = _opcode != Opcode.Binary
? _rawData.UTF8Decode ()
: BitConverter.ToString (_rawData);
_dataSet = true;
}
setData ();
return _data;
}
}
@ -157,6 +150,7 @@ namespace WebSocketSharp
/// </value>
public byte[] RawData {
get {
setData ();
return _rawData;
}
}