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

  • SEARCH
  • Home
  • 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 8893991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:23:09+00:00 2026-06-14T23:23:09+00:00

I have following array: double[] Series = new double[] { 7.0, 6.9, 9.5, 14.5,

  • 0

I have following array:

double[] Series = new double[] { 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 }

Series debugging view :

> Series
--> [0]
--> [1]
--> ...
--> [10]
--> [11]

When I write following:

object[] object_array = new object[] { Series }

object_array debugging view : (more than one level)

> object_array
--> [0]
----> [0]
----> [1]
----> ...
----> [10]
----> [11]

I write following to prevent new level:

object[] object_array = new object[Series.Length];
for (int i = 0; i < Series.Length; i++)
{
    object_array[i] = Series[i];
}

This is the one of the other solutions. But I think, there may be a better way to do this. Is there a problem for me to use above loop? Or different way?

(I use highcharts. If I give array that contains more than one level, it does not work.)

Thanks.

  • 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-14T23:23:11+00:00Added an answer on June 14, 2026 at 11:23 pm

    By doing this

    object[] object_array = new object[] { Series }
    

    you are assigning a double array as the first object item of the array object_array. You are actually creating 2D array with one row. You can use something like this:

    double[] Series = new double[] { 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6 };
    object[] object_array = new object[Series.Length];
    Series.CopyTo(object_array, 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following array: double[] list = new double[] {0,0,100,100} Why if I
I have the following array ArrayList<double[]> db_results = new ArrayList<double[]>(); and I would like
I have taken following array; to fill-up gallery: private Integer[] mImageIds = { R.drawable.one,
I have a ListActivity populated by the following Array Object: public class VideoLocation {
I have the following code that returns a reference to an array with one
If I have the following code: var A = Array[Array[Double]]() // where A becomes
Lets have the files with the following contents: file1.cpp : double array[100]; file2.cpp (client
I have the following: var list = new List<double[]>(); list.Add(new double[] { 300, 12,
I have the following code: IEnumerable<KeyValuePair<T, double>> items = sequence.Select(item => new KeyValuePair<T, double>(item,
I have following array, that I need to operate by hand on bitmaps. const

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.