As the title says, then I want to access x. from a let instead of a member.
The following works:
type UploadController() =
inherit Controller()
member x.UploadPath
with get() = x.Server.MapPath "~/Uploads"
But this:
type UploadController() =
inherit Controller()
let uploadPath = x.Server.MapPath "~/Uploads"
Throws a compiler error:
The namespace or module ‘x’ is not
defined
Mission impossible?
You can define a reference like this: