Hi,
Just to add the new() constraint to the method to specify that the class has a parameterless constructor . Without it the compiler error is "Cannot create an instance of the variable type 'T' because it does not have the new() constraint".
public int Save<T>(DomainObject model) where T : BaseConfig, new() {
T config = new T();
return 0;
}
Alan.
[EDIT] have I understood the question correctly?