Hi, i need to get the BindableProperty by the property name.
public BindableProperty GetBindableProperty(BindableObject bindableObj, string propertyName) {
if(typeof(Entry) == bindableObj.GetType()) {
if("Text" == propertyName) {
return (Entry.TextProperty);
}
if("TextColor" == propertyName) {
return (Entry.TextColorProperty);
}
}
return (null);
}
But i do not want to use this "if else" style. Is there a general way that I don't need to judge the type and name?
