[longomatch] Clone objects using the binary serializer
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Clone objects using the binary serializer
- Date: Mon, 7 Jul 2014 11:27:27 +0000 (UTC)
commit 98397f193aeb21d9624490a3279fb178badc9906
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Jun 10 10:56:12 2014 +0200
Clone objects using the binary serializer
LongoMatch.Core/Common/Cloner.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Cloner.cs b/LongoMatch.Core/Common/Cloner.cs
index 7b00c09..72277c5 100644
--- a/LongoMatch.Core/Common/Cloner.cs
+++ b/LongoMatch.Core/Common/Cloner.cs
@@ -30,9 +30,9 @@ namespace LongoMatch.Common
Stream s = new MemoryStream();
using (s) {
- SerializableObject.Save<T>(source, s);
+ SerializableObject.Save<T>(source, s, SerializationType.Binary);
s.Seek(0, SeekOrigin.Begin);
- return SerializableObject.Load<T>(s);
+ return SerializableObject.Load<T>(s, SerializationType.Binary);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]