[英]How to create instance of a generic C# type in F#?
我想寫這個
Bgr<byte>[,] image = new Bgr<byte>[480, 640];
F#中的C#代碼。 但是不知道該怎么做。
let image = Array2D.zeroCreate<Bgr<byte>> 480 640
要么
let image : Bgr<byte>[,] = Array2D.zeroCreate 480 640
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.