public override void Commit() { string impStr = string.Join(";", Implements.Select(x => x)); if (_XML.Attribute(nameof(Implements))?.Value != impStr) { _XML.SetAttributeValue(nameof(Implements), string.IsNullOrWhiteSpace(impStr) ? null : impStr); } _XML.SetAttributeValue(nameof(Base), Base == null ? null : Base); _XML.SetAttributeValue(nameof(ClassType), string.IsNullOrWhiteSpace(ClassType ?? "") ? null : ClassType); }
public void Expand(Dictionary <string, ApiReferenceBuildOutput> references, string[] supportedLanguages) { if (_needExpand) { _needExpand = false; Inheritance = Inheritance?.Select(i => ApiBuildOutputUtility.GetReferenceViewModel(i.Uid, references, supportedLanguages)).ToList(); Implements = Implements?.Select(i => ApiBuildOutputUtility.GetApiNames(i.Uid, references, supportedLanguages)).ToList(); Syntax?.Expand(references, supportedLanguages); Overridden = ApiBuildOutputUtility.GetApiNames(Overridden?.Uid, references, supportedLanguages); SeeAlsos?.ForEach(e => e.Expand(references, supportedLanguages)); Sees?.ForEach(e => e.Expand(references, supportedLanguages)); Exceptions?.ForEach(e => e.Expand(references, supportedLanguages)); } }