Menu

#483 Wrong threadsafety summary

v1.3
open
nobody
5
2007-04-03
2007-04-03
No

NDoc always generates that silly thread-safety section that the MSDN libray also has:

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

This is nonsense since there is no guarantee that a static method will not access global variables, singletons, files, network connections and so on without proper synchronization.

Please do not generate this by default. At least add a switch to disable this. Adding a <threadsafety> tag to all my classes is just cumbersome.

Discussion


Log in to post a comment.