In my main PCL project (WP8, Android, iOS, Xamarin, MvvmCross) I use custom attributes. The extension method Type.GetCustomAttributes () allows me to examine the attributes used.
Using PCL Profile104 works well. But since I want to use async / await, I will need to use PCL Profile78 (and .NET 4.5)
Problem: It seems that GetCustomAttributes () and the Attributes property are not available in Profile78. Why??
Note: I am exploring a workaround by creating a PCL Profile 104 profile class library and wrapping GetCustomAttributes (), and then referencing this library from the PCL Profile78 library. However, extension methods do not seem to be supported ...
Code example:
public Pcl78Class() { Type t = this.GetType(); var attributes = t.Attributes; var customAttributes = t.GetCustomAttributes(true);

source share