using System; namespace FlexFramework.Excel { public sealed class Mapper : MapperBase>, IGenerator where T : new() { public Mapper() : base(typeof(T)) { } protected override object CreateInstance() { return new T(); } T IGenerator.Instantiate(Row row) { return (T)Instantiate(row); } } public sealed class Mapper : MapperBase, IGenerator { public Mapper(Type type) : base(type) { } object IGenerator.Instantiate(Row row) { return Instantiate(row); } } }