"is this html helper thread safe?" Code Answer


hmm.... doesn't look like it to me ;p

htmlhelper has some instance properties, in particular viewcontext and viewdata (via viewdatacontainer) etc. putting that anywhere static is a terrible terrible idea.

with the basic code that is going on you'll probably get away with it, but: imo this is still a very bad idea. well spotted.

By artoby on May 10 2022

Answers related to “is this html helper thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.