public TaskPropertyEntry OpenProperty(MetaTableProperty property) { var output = items.FirstOrDefault(x => x.propertyName == property.PropertyName); if (output == null) { output = new TaskPropertyEntry(property); items.Add(output); } return(output); }
public TaskPropertyEntry OpenProperty(String propertyName, String propertyType) { var output = items.FirstOrDefault(x => x.propertyName == propertyName); if (output == null) { output = new TaskPropertyEntry() { propertyName = propertyName, propertyType = propertyType, exampleValue = "" }; items.Add(output); } return(output); }