Announcement

Collapse
No announcement yet.

giải thích Generic trong C#

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 09520134
    replied
    class nhap<T> implement interface IComparable và kiểu T cũng phải là một kiểu dữ liệu có implement interface IComparable

    Leave a comment:


  • 09520645
    started a topic [C#] giải thích Generic trong C#

    giải thích Generic trong C#

    Code:
    class nhap<T> : IComparable
           where T : IComparable
    giải thích giúp mình 2 đoạn code trên với cái kiểu generic T, where và IComparable, mong nhận góp ý, thanks

LHQC

Collapse
Working...
X