您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
 
 
 

30 行
532 B

  1. using System;
  2. namespace CIG
  3. {
  4. public class Purchase<T> where T : StoreProduct
  5. {
  6. public Purchase(T product, string transactionID)
  7. {
  8. this.Product = product;
  9. this.TransactionID = transactionID;
  10. }
  11. public override string ToString()
  12. {
  13. return string.Concat(new object[]
  14. {
  15. "[Purchase: TransactionID=",
  16. this.TransactionID,
  17. ", Product=",
  18. this.Product,
  19. "]"
  20. });
  21. }
  22. public T Product { get; private set; }
  23. public string TransactionID { get; private set; }
  24. }
  25. }