Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: