// Helper method to find if the propertyvalueeditor is reusable for the // given properties collection. public static bool IsEditorReusable(IEnumerable <ModelProperty> properties) { if (properties == null) { return(true); } foreach (ModelProperty property in properties) { // even if one property says the editor is not reusable, then // the editor is not reusable for this whole list. if (!ExtensibilityMetadataHelper.IsEditorReusable(property.Attributes)) { return(false); } } return(true); }