public ContentData ToCleaned() { var target = new ContentData(); foreach (var fieldValue in ValidValues) { if (fieldValue.Value != null) { var resultValue = new ContentFieldData(); foreach (var(key, value) in fieldValue.Value.Where(x => x.Value.Type != JsonValueType.Null)) { resultValue[key] = value; } if (resultValue.Count > 0) { target[fieldValue.Key] = resultValue; } } } return(target); }
public ContentData MergeInto(ContentData target) { return(Merge(target, this)); }
public bool Equals(ContentData <T>?other) { return(other != null && (ReferenceEquals(this, other) || this.EqualsDictionary(other))); }
public ContentData(ContentData source) : base(source, StringComparer.Ordinal) { }
protected ContentData(ContentData <T> source, IEqualityComparer <T> comparer) : base(source, comparer) { }