Let's say I want to obtain the"R" component from all Colors in Xamarin.Forms.Color. I tried this:
var RComponentList = typeof(Color).GetRuntimeFields(). Select((f) => f.GetType().GetRuntimeProperty("R"));
but the result is a list of nulls. Is like it managed to find the colors but not the "R" property in each of them. How can I achieve this ?. Thank you.
Aucun commentaire:
Enregistrer un commentaire