NewLife/X

<Unknow>
Stone authored at 2016-05-09 18:19:49
0a55024
Tree
1 Parent(s) 762a11d
Summary: 1 changed files with 7 additions and 2 deletions.
Modified +7 -2
Modified +7 -2
diff --git a/NewLife.Core/Serialization/Binary/BinaryNormal.cs b/NewLife.Core/Serialization/Binary/BinaryNormal.cs
index 8f4f995..f43db09 100644
--- a/NewLife.Core/Serialization/Binary/BinaryNormal.cs
+++ b/NewLife.Core/Serialization/Binary/BinaryNormal.cs
@@ -26,14 +26,19 @@ namespace NewLife.Serialization
             }
             else if (type == typeof(Byte[]))
             {
-                Write((Byte[])value, -1);
+                //Write((Byte[])value);
+                var bn = Host as Binary;
+                var bc = bn.GetHandler<BinaryGeneral>();
+                bc.Write((Byte[])value);
+                
                 return true;
             }
             else if (type == typeof(Char[]))
             {
                 //Write((Char[])value);
                 var bn = Host as Binary;
-                bn.GetHandler<BinaryGeneral>().Write((Char[])value, 0, -1);
+                var bc = bn.GetHandler<BinaryGeneral>();
+                bc.Write((Char[])value, 0, -1);
 
                 return true;
             }