Open GoogleCodeExporter opened 9 years ago
NetTranscoder.cs I fixed it use this method ,now it can work correctly.
private bool CanSerializeContractType(Type type)
{
if (type.IsGenericType)
{
var paraTypes = type.GetGenericArguments();
if (paraTypes.Count() > 0)
{
var canTypesSerialized = paraTypes.Select(x => CanSerializeContractType(x));
return canTypesSerialized.All(x => x);
}
else
{
return model.CanSerializeContractType(type);
}
}
return model.CanSerialize(type);
}
Original comment by liurongw...@gmail.com
on 27 Sep 2013 at 3:53
Original issue reported on code.google.com by
liurongw...@gmail.com
on 24 Sep 2013 at 6:21