question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET Arrays supported as response array types?

See original GitHub issue

Are .NET arrays (eg. Int32[]) supported as a response array type? If so, what do I put as a value in responseArrayType?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexbutler-iress-zzcommented, Sep 3, 2019

I’m still seeing this as an issue, can’t seem to figure out how to just get a primitive array, tried setting inline array types and leaving Generic Type Array blank etc, but the resultant is <TypeName> TypeName, which is clearly invalid. Having to do some nasty post generation find and replace at the moment.

1reaction
JoeRallcommented, Jun 13, 2018

Thanks for the feedback.

I’m sorry for my confusion regarding System.Collections.Generic.List not working. I was setting only the field Generic Array Type in the Response Types section and not the Generic Array Type in the Primitive Types section of the Serialization settings.

I like your suggestion on simply documenting the special value. I think that would be sufficient to help users.

When I get a chance I’m going to dig into this and I’ll submit a PR referencing this issue and we can discuss.

Thanks for the tips.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET: Array Types in .NET
NET Common Language Runtime (CLR) supports single-dimensional arrays, multidimensional arrays, and jagged arrays (arrays of arrays).
Read more >
Accessing and using .NET arrays - Progress Documentation
.NET actually supports a variety of different kinds of array object types, including jagged arrays, that you can access in ABL.
Read more >
Is it ok to have an array or list returned as a property in .NET?
Can you allow the caller to modify an internal array through a property? Yes, of course, but you will take on a slew...
Read more >
Arrays - Manual
An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized...
Read more >
PowerShell Array Guide: How to Use and Create
Learn how to best use PowerShell arrays — we'll cover the basics of how to create them, work with them as well as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found