Skip to content

Commit

Permalink
refactor base values assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatstariongroup committed Dec 5, 2024
1 parent 3f8727e commit 00e2b0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions EA-ModelKit/Model/Export/ExportableElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ public ExportableElement(SlimElement element, IReadOnlyList<string> taggedValues
this.KindName = element.ElementKind;
this.Headers = [..this.baseHeaders, ..taggedValuesToExport];

this.ExportableValues[this.baseHeaders[0]] = element.Name;
this.ExportableValues[this.baseHeaders[1]] = element.Alias;
this.ExportableValues[this.baseHeaders[2]] = WebUtility.HtmlDecode(element.Notes);
var values = new List<string> {element.Name, element.Alias,WebUtility.HtmlDecode(element.Notes)};

for(var baseHeaderIndex = 0;baseHeaderIndex < this.baseHeaders.Length;baseHeaderIndex++)
{
this.ExportableValues[this.baseHeaders[baseHeaderIndex]] = values[baseHeaderIndex];
}

foreach (var taggedValueToExport in taggedValuesToExport)
{
Expand Down

0 comments on commit 00e2b0c

Please sign in to comment.