Skip to content

Returning 2D arrays on API #14577

@scalablecory

Description

@scalablecory

From @btogkas on Monday, September 30, 2019 8:26:22 AM

Trying to return two dimensional decimal array from Controller.

public ActionResult<decimal[,]> TwoDArray()

This does not work on .Net Core 3 but works on 2.2
(Other methods work normally)

The configuration instead of UseMVC is

app.UseRouting();
app.UseEndpoints(x =>
{
x.MapControllers();
});

Is there something missing or?

Copied from original issue: dotnet/core#3510

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions