public override void SetValue(object component, object value) { TextResource item = component as TextResource; if (item != null) { item[indexer] = value as String; } }
public override object GetValue(object component) { TextResource item = component as TextResource; if (item != null) { return(item[indexer]); } throw new InvalidOperationException("Expected object of type TextResource"); }