Exemplo n.º 1
0
        protected JsonValueConverter <TValue> GetPropertyValueConverter(JsonSerializerOptions options)
        {
            JsonValueConverterAttribute attr = DefaultConverters.GetPropertyValueConverter(ParentClassType, PropertyInfo, PropertyType, options);

            if (attr != null)
            {
                return(attr.GetConverter <TValue>());
            }

            return(null);
        }
Exemplo n.º 2
0
        protected PropertyValueConverterAttribute GetPropertyValueConverter(JsonSerializerOptions options)
        {
            PropertyValueConverterAttribute attr = DefaultConverters.GetPropertyValueConverter(ParentClassType, PropertyInfo, PropertyType, options);

            return(attr);
        }