How to create that type of array dynamically in c#.
var data = new[] { new { Name = "China", Value = 1336718015 },
new { Name = "India", Value = 1189172906 },
};
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Najjaf ShujaPosted Jun 11, 2015, 4:25 AM
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project1
{
class DynamicArray
public string Name
{
get
{
return name;
}
set
{
name= value;
}
}
private string value1;
public string Value1
{
get
{
return value1;
}
set
{
value1= value;
}
}
}
Shuvojit HalderPosted Jun 11, 2015, 3:30 AM
Rahul BansalPosted Jun 11, 2015, 2:59 AM
Saroj Kumar SahuPosted Jun 11, 2015, 2:55 AM