public void OnTypesGenerated(IEnumerable <IDataType> types) { if (this.TypesGenerated != null) { DataTypeEventArgs e = new DataTypeEventArgs(types); this.TypesGenerated(this, e); } }
public void OnTypeGenerated(IDataType type) { if (this.TypesGenerated != null) { DataTypeCollection <IDataType> types = new DataTypeCollection <IDataType> { type }; DataTypeEventArgs e = new DataTypeEventArgs(types.AsReadOnly()); this.TypesGenerated(this, e); } }