IImmutable.cs 508 B

123456789101112131415161718192021
  1. 
  2. namespace Yuuna.Contracts.Linq
  3. {
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Collections.Immutable;
  7. using System.Text;
  8. /// <summary>
  9. /// 表示可轉換為不可變集合物件。
  10. /// </summary>
  11. /// <typeparam name="T"></typeparam>
  12. public interface IImmutable<T>
  13. {
  14. /// <summary>
  15. /// 轉換成不可變清單以使用 Linq 。
  16. /// </summary>
  17. /// <returns></returns>
  18. IImmutableList<T> ToImmutable();
  19. }
  20. }