我目前正在与来自f的c代码进行互操作。
在f中是否可以定义c中如下所示的属性?
private Func<PropertyInfo, bool> OnIsSatisfiedByProperty { get; set; }
(在f中,它不必是Func<T, TResult>而是等价物。)

最佳答案

我想相当于

type test() =
        member val private OnIsSatisfiedByProperty:PropertyInfo -> bool = (fun _ -> true) with get,set;;

关于c# - F#中的Func <T,TResult>属性,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20325425/

10-12 12:45
查看更多