Home » F# Attribute

F# Attribute

In F#, attribute is used to enable metadata for program code construct. Attribute can be applied to any construct like function, module, method and type.

Syntax:


F# Attribute Example

Output:

attributes.fs(118,1): warning FS0044: This construct is deprecated. Do not use. Use newFunction instead. 
Next TopicF# Signatures

You may also like