C# Lazy Initialization && Race-to-initialize?
问题 After reading about LazyInitializer that it's : It offers another mode of initialization that has multiple threads race to initialize. here is a sample : Expensive _expensive; public Expensive Expensive { get // Implement double-checked locking { LazyInitializer.EnsureInitialized (ref _expensive,() => new Expensive()); return _expensive; } } Question #1 looking at : why #A says its implements double-checking locking ? it is just a get proeprty ? Question #2 Does #B (lambda expression) is