/src/SampleLibrary/IOC/SampleGenericClassWithSpecificGenericTypeImplementation.cs

http://github.com/philiplaureano/LinFu · C# · 12 lines · 11 code · 1 blank · 0 comment · 0 complexity · 42b63293ae2c8fa71050db61a7689565 MD5 · raw file

  1. using System;
  2. using LinFu.IoC.Configuration;
  3. namespace SampleLibrary.IOC
  4. {
  5. [Implements(typeof(ISampleGenericService<int>), ServiceName = "SpecificGenericService")]
  6. [Implements(typeof(ISampleGenericService<double>), ServiceName = "SpecificGenericService")]
  7. public class SampleGenericClassWithSpecificGenericTypeImplementation<T> : ISampleGenericService<T>
  8. {
  9. public bool Called => throw new NotImplementedException();
  10. }
  11. }