1234567891011121314151617181920212223242526 |
- using System;
- namespace FastReport.Utils.Json.Serialization
- {
- [AttributeUsage(AttributeTargets.Property,
- AllowMultiple = false)]
- public class JsonPropertyAttribute : Attribute
- {
- public string PropertyName { get; }
- public bool IgnoreNullValue { get; }
- public JsonPropertyAttribute(string propertyName, bool ignoreNullValue = true)
- {
- PropertyName = propertyName;
- IgnoreNullValue = ignoreNullValue;
- }
- }
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
- public class JsonIgnoreAttribute : Attribute
- {
- }
- }
|