79396462

Date: 2025-01-29 10:48:55
Score: 2
Natty:
Report link

Depending of the Array type.

if you have a function that returns the Array type then:

eg:

List x = new List{"a","b","c"};

//this is a none predefined array object. Array _test = x.ToArray();

then if you want to convert the _test back to a List you can easy do it like this:

List abx = x.getValue(0) as List;

if you have predefine array object eg:

string[] arrString = { "A", "B", "C"}; or string[] arrstring = string[6];

then you can cast the arrstring.toList();

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Karel Urbaniak