Just drop the attribute Literaland use the let-bound value:
module MyClass =
let MyValue = "Test"
This will be compiled as the equivalent of a static property for getter only (generated by ILSpy C #):
public static string MyValue
{
[DebuggerNonUserCode, CompilerGenerated]
get
{
return "Test";
}
}
( , ), readonly , ( getter). , ILSpy, .
, IL, - F #, ( , .. ). .