getting name of a gameobject throw scripting

Hi all;
I have a game object. I just want to get its name throw the code. And then use it as an index. This game object it self has 13 children that I want its children’s name
For example I have a gameobject have 13 trees as its children,named from 1 to 13. I want to get the number of each tree and then use it as an index.
How can I do this?

foreach( Transform child in this.transform )
{
// access child name
string name = child.gameObject.name;
}