Question: How to convert this in C# code?

```
//Cannot implicitly convert type 'System.Array' to 'decimal[]'.
//An explicit conversion exists
Array[] s = new Array[10];
for (int i = 0; i < 9; i++)
{
    s[i] = average; //average is decimal [] 
}
for (int i = 0; i < 2; i++)
{
    Mean = s[i]; //mean is decimal[] & s[i] system array 
}

```

Answer: 
If you want to use JQuery, you need to change the 

```
$example.each(function(){                   
        list.push($(this).children("word").children("definition").text());
                });

```

to

```
$example.children("word").children("definition").each(
  function() {                   
   list.push($(this).text());
  });

```
Check out this [**Fiddle.**](https://jsfiddle.net/JVpGv/371/)

```
$(document).ready(function() {

var xml =
  '<example>' +
    '<phrase>phrase1</phrase>' +
    '<word>' +
      '<definition>definition1</definition>' +
    '</word>' +
    '<word>' +
      '<definition>definition2</definition>' +
    '</word>' +
  '</example>' +
'';
var xmlDoc = new DOMParser().parseFromString(xml, 'text/xml');
var x = xmlDoc.documentElement.childNodes;
var list = [];
for (i = 0; i < x.length; i++) {
  if (x[i].nodeName == 'word') {
    console.log(x[i].childNodes[0].innerHTML);
    list.push(x[i].childNodes[0].innerHTML);
  }
}
document.getElementById('demo').innerHTML = list;
console.log(list);
});

```