.NET Arrays supported as response array types?
See original GitHub issueAre .NET arrays (eg. Int32[]) supported as a response array type? If so, what do I put as a value in responseArrayType
?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Thanks for the feedback.
I’m sorry for my confusion regarding
System.Collections.Generic.List
not working. I was setting only the fieldGeneric Array Type
in theResponse Types
section and not theGeneric Array Type
in thePrimitive 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.