Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //error CS0695: ITemplateSection<T> cannot implement both IMapper<IIndustryTemplate,object> and IMapper<IIndustryTemplate, T>'
- //because they may unify for some type parameter substitutions.
- public interface ITemplateSection<T> : IMapper<IIndustryTemplate, object>, IMapper<IIndustryTemplate, T>
- {
- }
- public class ObjectSection : ITemplateSection<object>
- {
- public object MapFrom(IIndustryTemplate item)
- {
- throw new NotImplementedException();
- }
- }
- public class StringSection : ITemplateSection<string>
- {
- public object MapFrom(IIndustryTemplate item)
- {
- throw new NotImplementedException();
- }
- string IMapper<IIndustryTemplate, string>.MapFrom(IIndustryTemplate item)
- {
- throw new NotImplementedException();
- }
- }
Add Comment
Please, Sign In to add comment