We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfa8006 commit 90a1bf5Copy full SHA for 90a1bf5
src/CouchDB.Driver/Helpers/CouchContractResolver.cs
@@ -24,18 +24,6 @@ internal CouchContractResolver(PropertyCaseType propertyCaseType)
24
if (property != null && !property.Ignored)
25
{
26
property.PropertyName = member.GetCouchPropertyName(_propertyCaseType);
27
-
28
- DefaultValueAttribute? defaultValueAttribute = member.GetCustomAttribute<DefaultValueAttribute>();
29
- if (defaultValueAttribute != null && member is PropertyInfo propertyInfo)
30
- {
31
- property.ShouldSerialize =
32
- instance =>
33
34
- object? value = propertyInfo.GetValue(instance);
35
- var shouldSerialize = !Equals(value, defaultValueAttribute.Value);
36
- return shouldSerialize;
37
- };
38
- }
39
}
40
return property;
41
0 commit comments