alexa-tracking

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/53a3fb40bccb172e208b4584/ask-tanya-foreach-di-c
[ASK] tanya Foreach di C#
Code:

public ActionResult ChartPie()
{
string[] categories = { "MSIE", "Firefox", "Chrome", "Safari", "Opera" };
Data data = new Data(new[]
{
new Point
{
Y = 55.11,
Color = Color.FromName("colors[0]"),
Drilldown = new Drilldown
{
Name = "MSIE versions",
Categories = new[] { "MSIE 6.0", "MSIE 7.0", "MSIE 8.0", "MSIE 9.0" },
Data = new Data(new object[] { 10.85, 7.35, 33.06, 2.81 }),
Color = Color.FromName("colors[0]")
}
},
new Point
{
Y = 21.63,
Color = Color.FromName("colors[1]"),
Drilldown = new Drilldown
{
Name = "Firefox versions",
Categories = new[] { "Firefox 2.0", "Firefox 3.0", "Firefox 3.5", "Firefox 3.6", "Firefox 4.0" },
Data = new Data(new object[] { 0.20, 0.83, 1.58, 13.12, 5.43 }),
Color = Color.FromName("colors[1]")
}
},



master C# ane mau Tanya gimana cara bikin object new point menjadi dinamis? trimakasih sebelumnya