mardi 1 décembre 2015

How i get an object instance's annotation or Custom Attribute?

Is it possible to access the Object instance's Annotation definition?

Lets Say I have the following Code:

public class A
{
    [CustomStuff( Value="" )]
    public B propertyB;
}

In another class i receive an instance of B as parameter, is it possible to get the annotations from that object?





Aucun commentaire:

Enregistrer un commentaire