private static void InitialiseResourceManager() { if(_resman == null) { lock(typeof(BitStreamResources)) { if(_resman == null) { _oResManLock = new object(); _resman = new ResourceManager("BKSystem.IO.BitStream", typeof(BitStream).Assembly); } } } }