jeudi 7 octobre 2021

how to get all previous called methods from first to end methods

Let's say we have this code

namespace app.Entities
{
    public class school
    {
        public bool Addschool() { }
    }
}


namespace app.layer1
{
    public class ManageSchool
    {
        public bool schoolInfo() {
            schoolInfo.addSchool();
        }
    }
}


namespace app.layer
{
    public class schoolAPi
    {
        public bool GetAndAdd()
        {
            ManageSchool.schoolInfo();
        }
    }
}

i want to know which layers and fuctions called AddSchool() method in app.entitied namespace for exp : app.layer2.schoolAPi.GetAndAdd >> app.layer1.ManageSchool.schoolInfo >> app.Entities.school.Addschool





Aucun commentaire:

Enregistrer un commentaire