Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8982665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:38:10+00:00 2026-06-15T20:38:10+00:00

public : array<Byte>^ Foo(array<Byte>^ data) gets dynamic size managed array but how can I

  • 0
public : array<Byte>^ Foo(array<Byte>^ data)

gets dynamic size managed array

but how can I get fixed size managed byte array?

I wanna force C# user to send me 8 byte array; and get 8 bytes back

style:

public : Byte[8] Foo(Byte[8] data)

EDIT:

can any1 explain why its impossbile in safe context?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:38:11+00:00Added an answer on June 15, 2026 at 8:38 pm

    C# does not allow you to do that. You’ll simply have to validate the array’s length and maybe throw an exception if the length is not 8.

    Also, the type of your function can’t be Byte[8]; you’ll have to change that to Byte[].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code intended to get a struct from a byte array: public
I need to convert a file to a byte array, but I can't do
I have a byte array that can be very big in size. I want
This is my code to create a file. public void writeToFile(byte[] array) { try
public function action_adicionar_item() { $lista_item_pedido = array(); $x = 0; if(Session::has('lista_item_pedido')) { foreach(Session::get('lista_item_pedido') as
С# COM DLL Interface: public interface IShowDialog { void showMessage(byte[] array); } and call
How to do RSA encryption of byte array with base-64 encoded public key? After
I'm trying to get a byte array of an image saved locally on the
I've trying to get byte-array and copy from there to another array some rows
I use the RedisConnection Set method to set the byte array but how do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.