CarData1.CarInputData = new int[] { CarData1.NoDoor, CarData1.NoSeats, CarData1.NoWheel };

// this is your int array       //this is your int array converter

Description 

  1. above coding i use for my int array
  2. this coding also works for “double”, “float” and all related numbers code
  3. this coding also can be use for this error ” Cannot Implicitly type ‘int’ to ‘int []’ “.
  4. this coding mostly use during writing Open and Save button.

6 thoughts on “Convert int to int array or int[]

  1. I simply want to mention I am just all new to blogging and site-building and honestly loved this web site. Likely I’m planning to bookmark your blog post . You actually come with terrific article content. Thanks a lot for sharing your web page.

Leave a Reply