Added (totally not optimized) property name indexer for CustomOptionCollection
This commit is contained in:
parent
dffeaa46cb
commit
d82cc67a44
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user