c # comment obtenir le nom du type d'un appelant

J'ai obtenu cette classe

public class fooBase
{
    public List<MethodsWithCustAttribute> MethodsList;
    public bool fooMethod([CallerMemberName]string membername =""))
    {
        //This returns a value depending of type and method 
    } 
    public void GetMethods()
    {
        //Here populate MethodsList using reflection
    }
}

Et Cet Attribut N'Classe

//This attribute get from a database some things, then fooMethod check this attribute members 
public class CustomAttribute
{
    public string fullMethodPath;
    public bool someThing ; 
    public bool CustomAttribute([CallerMemberName]string membername ="")
    {
        fullMethodPath = **DerivedType** + membername 
        // I need here to get the type of membername parent. 
        // Here I want to get CustClass, not fooBase

    }
}

Puis j'ai cette

public class CustClass : fooBase
{
     [CustomAttribute()]
     public string method1()
     {
         if (fooMethod())
         {
             ....
         }
     }
}

J'ai besoin du nom du Type de l'CallerMember, il y a quelque chose comme [CallerMemberName] pour obtenir le Type de la classe propriétaire de l'Appelant ?

source d'informationauteur Juan Pablo Gomez