getting values from class

hello
i’m trying to retrieve variables from a class without success
the foreach loop is ignored it seems
any ideas?

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class myscript : MonoBehaviour
{
    class myclass
    {
        public string t;
        public int r;
        public int m;

        public myclass(string newT, int newR, int newM)
        {
            t = newT;
            r = newR;
            m = newM;
        }
    }
    
    List<myclass> mylist = new List<myclass>();

        void Start()
    {
        mylist.Add(new myclass("0", 0, 0));
        mylist.Add(new myclass("2", 0, 0));
        mylist.Add(new myclass("3", 0, 0));

        foreach (myclass m in mylist)
        {
            print("---check---");
            print(m.t + " - " + m.r + " - " + m.m);
        }
    }
}

Try ‘Debug.Log’ instead of ‘print’