private static GetDeclaredProperty ( |
||
propertyInfo | ||
Результат |
public static bool CanWriteExtended(this PropertyInfo propertyInfo) { if (propertyInfo.CanWrite) { return(true); } PropertyInfo declaredProperty = PropertyInfoExtensions.GetDeclaredProperty(propertyInfo); if (declaredProperty != (PropertyInfo)null) { return(declaredProperty.CanWrite); } return(false); }
public static PropertyInfo GetPropertyInfoForSet(this PropertyInfo propertyInfo) { if (propertyInfo.CanWrite) { return(propertyInfo); } PropertyInfo declaredProperty = PropertyInfoExtensions.GetDeclaredProperty(propertyInfo); if ((object)declaredProperty != null) { return(declaredProperty); } return(propertyInfo); }