问题标签 [uicontrolstate]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
70 浏览

c# - 是否有类似 RequestLocal(如 ThreadLocal)的东西?

在 C# 中有一个类ThreadLocal。您可以使用它来定义仅存在于线程范围内的静态字段。

我正在寻找类似的东西用于 ASP 自定义控件。我需要在请求的范围内定义一个在该控件的所有实例之间共享的静态字段。

是否存在开箱即用的东西?