Hacker News new | ask | show | jobs
by philbarr 4018 days ago
Later on in the class I notice they have this:

		public ulong GeneratedBytesCount
		{
			get
			{
				ulong u;
				lock(m_oSyncRoot) { u = m_uGeneratedBytesCount; }
				return u;
			}
		}
...so if you care about thread safety at some point in your class, then you should care about it during it's initialisation.