Guest User

Untitled

a guest
Jun 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. //error CS0695: ITemplateSection<T> cannot implement both IMapper<IIndustryTemplate,object> and IMapper<IIndustryTemplate, T>'
  2. //because they may unify for some type parameter substitutions.
  3.  
  4. public interface ITemplateSection<T> : IMapper<IIndustryTemplate, object>, IMapper<IIndustryTemplate, T>
  5. {
  6. }
  7.  
  8. public class ObjectSection : ITemplateSection<object>
  9. {
  10. public object MapFrom(IIndustryTemplate item)
  11. {
  12. throw new NotImplementedException();
  13. }
  14. }
  15.  
  16. public class StringSection : ITemplateSection<string>
  17. {
  18. public object MapFrom(IIndustryTemplate item)
  19. {
  20. throw new NotImplementedException();
  21. }
  22.  
  23. string IMapper<IIndustryTemplate, string>.MapFrom(IIndustryTemplate item)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. }
Add Comment
Please, Sign In to add comment