F# 属性

2024年8月29日 | 1 分钟阅读

在 F# 中,属性用于为程序代码结构启用元数据。属性可以应用于任何结构,如函数、模块、方法和类型。

语法


F# 属性示例

输出

attributes.fs(118,1): warning FS0044: This construct is deprecated. Do not use. Use newFunction instead.
下一主题F# 签名