StructRecordsGenerator icon indicating copy to clipboard operation
StructRecordsGenerator copied to clipboard

Add an attribute to print the content of a collection field

Open SergeyTeplyakov opened this issue 5 years ago • 1 comments

[StructRecord]
public struct FooBar {
  [ToStringAsCollection]
  public string[] X {get; set;}
}

And in this case the member X will be printed with the content of the array and not just as 'string[]'.

SergeyTeplyakov avatar Dec 18 '20 18:12 SergeyTeplyakov

Would this be for the generated ToString() method, or for [DebuggerDisplay] ?

daiplusplus avatar Apr 12 '22 02:04 daiplusplus