Profil przenośnej biblioteki klas 78 brak metod / właściwości związanych z atrybutami

W moim głównym projekcie PCL (WP8, Android, iOS, Xamarin, MvvmCross) używam niestandardowych atrybutów. Metoda rozszerzenia Type.GetCustomAttributes () pozwala mi sprawdzić używane atrybuty.

Przy użyciu profilu PCL104 działa to dobrze. Ale ponieważ chcę korzystać z asynchronizacji / oczekiwania, będę musiał użyć PCL Profile78 (i .NET 4.5)

Problem: Wygląda na to, że właściwości GetCustomAttributes () i Attributes nie są dostępne w Profile78. Czemu??

Uwaga: Przeglądam obejście problemu, tworząc bibliotekę klas PCL Profile 104 i owijając GetCustomAttributes (), a następnie odwołując się do tej biblioteki z mojej biblioteki PCL Profile78. Wydaje się jednak, że metody rozszerzenia nie są obsługiwane ...

Przykładowy kod:

public Pcl78Class()
{
    Type t = this.GetType();
    var attributes = t.Attributes;
    var customAttributes = t.GetCustomAttributes(true);

    // another weird thing: Why is VS CodeCompletion telling me it knows CustomAttributeExtensions class and methods?
    //System.Reflection.CustomAttributeExtensions.GetCustomAttributes(t);
}

questionAnswers(1)

yourAnswerToTheQuestion