Reputation: 13
I write a class myself, do not implement the ITypeProvider interface, can do the same effect?
The syntax of static parameters is not described in the f# language reference, is there any relevant help?
Thank you very much!
Upvotes: 0
Views: 76
Reputation: 2383
I think you are asking if the static parameters mechanism used in type providers can be used in ordinary F# code.
The short answer is no.
Type providers are special: they are compiler plug-ins that provides types, properties, and methods for use in your code. Special rules apply to them.
Upvotes: 1