get all child gameObject of gameObject C#

C#
foreach (Transform child in transform)     
Source

Also in C#: