|
@@ -200,13 +200,13 @@ namespace PetaJson
|
|
|
|
|
|
public static T Clone<T>(T source)
|
|
|
{
|
|
|
- return Reparse<T>(source);
|
|
|
+ return (T)Reparse(source.GetType(), source);
|
|
|
}
|
|
|
|
|
|
|
|
|
public static object Clone(object source)
|
|
|
{
|
|
|
- return Reparse(typeof(object), source);
|
|
|
+ return Reparse(source.GetType(), source);
|
|
|
}
|
|
|
|
|
|
|