unify coding style
This commit is contained in:
@@ -31,15 +31,13 @@ namespace OCES.Haptic
|
|||||||
{
|
{
|
||||||
if (bytes == null)
|
if (bytes == null)
|
||||||
return false;
|
return false;
|
||||||
using (MemoryStream memoryStream = new(bytes))
|
using MemoryStream memoryStream = new(bytes);
|
||||||
|
using (BinaryReader br = new(memoryStream))
|
||||||
{
|
{
|
||||||
using (var br = new BinaryReader(memoryStream))
|
data.DeSerialize(br);
|
||||||
{
|
br.Close();
|
||||||
data.DeSerialize(br);
|
|
||||||
br.Close();
|
|
||||||
}
|
|
||||||
memoryStream.Close();
|
|
||||||
}
|
}
|
||||||
|
memoryStream.Close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user