Added (totally not optimized) property name indexer for CustomOptionCollection

This commit is contained in:
Michael Becker 2015-09-14 16:10:51 -04:00
parent dffeaa46cb
commit d82cc67a44

View File

@ -108,6 +108,19 @@ namespace UniversalEditor
public class CustomOptionCollection
: System.Collections.ObjectModel.Collection<CustomOption>
{
public CustomOption this[string propertyName]
{
get
{
foreach (CustomOption co in this)
{
if (co.PropertyName == propertyName) return co;
}
return null;
}
}
}
private string mvarPropertyName = String.Empty;