public object ProvideDefault(MethodInfo member) { return(!member.ReturnType.GetTypeInfo().IsSerializable || member.ReturnType.IsSerializableMockable() ? decorated.ProvideDefault(member) : emptyDefaultValueProvider.ProvideDefault(member)); }
public object ProvideDefault(MethodInfo member) { return(IsSerializableWithIncorrectImplementationForISerializable(member.ReturnType) ? emptyDefaultValueProvider.ProvideDefault(member) : decorated.ProvideDefault(member)); }