Simple question, but docs are silent. In sources there are some locks, so probably it is, but I want to know for sure.
Maybe there is an existing answer before I attempted to write a test? If none, how would such test looks like (I am not sure what exactly I have to test to answer if it's thread-safe or not)?
Background: I am using CSharpScript
to run user scripts where globals will contain dynamic
properties (ExpandoObject
instances). Those properties will contain used in script methods (Action<T>
), added and removed dynamically from another thread. This will provide user with nicer syntax: ExpandoProperty.BlaBlaBla(parameters);
compared to using e.g. dictionary: DictionaryProperty["BlaBlaBla"](parameters);