/// <summary>
/// Returns whether or not the property can be reset</summary>
/// <param name="owners">Objects whose property is tested</param>
/// <param name="descriptor">Property to reset</param>
/// <returns>True iff the property can be reset on the object</returns>
public static bool CanResetProperty(IEnumerable <object> owners, PropertyDescriptor descriptor)
{
foreach (object owner in owners)
{
if (!descriptor.CanResetValue(owner))
{
return(false);
}
}
return(true);
}