2
我想知道爲什麼第二行告訴我柔性類型受到了限制。 很明顯,人們可以繞過它,但是有什麼教訓可以從中獲得?靈活類型和通用參數
type DataTable with
static member FromObjArray (input : seq<#seq<'T>>) = () //keep the flexibility
static member FromObjArray<'T> (input : seq<#seq<'T>>) = () //constrained to seq
有用瞭解..我覺得我很困惑這一點,沒有淨化根本原因。 – nicolas 2013-03-01 14:59:18