private string GetDescription(Type type, JsonProperty memberProperty) { JsonContainerAttribute containerAttribute = JsonTypeReflector.GetCachedAttribute <JsonContainerAttribute>(type); if (!string.IsNullOrEmpty(containerAttribute?.Description)) { return(containerAttribute.Description); } AttributeHelpers.GetDescription(type, memberProperty, out string description); return(description); }
private string?GetDescription(Type type, JsonProperty?memberProperty) { JsonContainerAttribute?containerAttribute = ReflectionUtils.GetAttribute <JsonContainerAttribute>(type); if (!string.IsNullOrEmpty(containerAttribute?.Description)) { return(containerAttribute !.Description); } AttributeHelpers.GetDescription(type, memberProperty, out string?description); return(description); }