Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can I make C# accept T[] instead of List<T>? #8456

Unanswered
Raildex asked this question in Q&A
Discussion options

I am generating byte arrays, and the schemas contain

data: [ubyte];

But the resulting (Object API) on the C# side is a List:

 [Newtonsoft.Json.JsonProperty("data")]
 public List<byte> Data { get; set; }

Is there a way to generate it accepting a byte[] instead?

The issue I am having specifically is that I store pixel data.
Generating a List out of my pixel byte arrays just doubles the required memory for this conversion.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /