how do i list all the objects colliding with a colider

hey, i want all the onjects that are inside or coliding with a colider to be placed in an array that is in a code in that same object, if anyone knowsplease help.

I suggest you’d use a List

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Example : MonoBehaviour {

    private List<GameObject> GOs;

    void OnTriggerEnter (Collider Other){
    void Somefunction (){
          for (int i = 0; i < GOs.Count; i++) {
          /* DoSomething with */ = GOs*;*