You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DataMember] fields are resolved during schema generation.
There is no easy way (without significant performance hit) for serialization and deserialization of private fields.
If you feel, that this is your case - please leave a comment down below. Maybe we'll figure out the right solution.
Serialization code snippet
var privateFields = type.GetFields(BindingFlags.Instance | BindingFlags.NonPublic);
var targetField = privateFields.FirstOrDefault(f => f.Name.Contains(name));
value = targetField?.GetValue(recordObj);
The text was updated successfully, but these errors were encountered:
[DataMember] fields are resolved during schema generation.
There is no easy way (without significant performance hit) for serialization and deserialization of private fields.
If you feel, that this is your case - please leave a comment down below. Maybe we'll figure out the right solution.
Serialization code snippet
The text was updated successfully, but these errors were encountered: