Skip to content

Commit

Permalink
Fix array cast error, document
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Apr 15, 2024
1 parent 9ae17a8 commit 2e47d39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Changed

- Bugfix for cast error in array-string conversion


## [4.1.0] - 2024-03-12

### Changed
Expand Down
3 changes: 1 addition & 2 deletions DicomTypeTranslation/Helpers/ArrayHelperMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ public static string GetStringRepresentation(Array a)
return AsciiArt(a);

var sb = new StringBuilder();
// ReSharper disable once SuspiciousTypeConversion.Global - odd conversion but needed to get the right StringBuilder Append overload
sb.AppendJoin('\\', (IEnumerable<object>)a);
sb.AppendJoin('\\', a.Cast<object>());
return sb.ToString();
}
}

0 comments on commit 2e47d39

Please sign in to comment.