/src/LinFu.Reflection/Interfaces/IInitialize.cs

http://github.com/philiplaureano/LinFu · C# · 17 lines · 7 code · 0 blank · 10 comment · 0 complexity · c50438034e275d062242e31e4dae8176 MD5 · raw file

  1. namespace LinFu.Reflection
  2. {
  3. /// <summary>
  4. /// Represents classes that need to be initialized
  5. /// every time a particular
  6. /// instance creates that type.
  7. /// </summary>
  8. public interface IInitialize<T>
  9. {
  10. /// <summary>
  11. /// Initializes the target with the
  12. /// particular <typeparamref name="T" /> instance.
  13. /// </summary>
  14. /// <param name="source">The <typeparamref name="T" /> instance that will hold the target type.</param>
  15. void Initialize(T source);
  16. }
  17. }