8586878889909192939495
((IGaeaSerializer) obj).Serialize(stream); } else { SerializerFactory.GetSerializer(type).WriteObject(obj, stream); } } byte[] result = stream.toByteArray(); return result; } finally { if (stream != null) { stream.close(); }