为什么这两个函数(f1和f2)返回不同的结果?
let f1< t>() = if typeof<byte[]> = typeof< t> then printfn "Is Byte Array" else printfn "Is Not Byte Array"
let f2< t>() =
match box Unchecked.defaultof< t> with
| :? (byte[]) -> printfn "Is Byte Array"
| _ -> printfn "Is Not Byte Array"
f1<byte[]>();;
Is Byte Array
f2<byte[]>();;
Is Not Byte Array