/// <exception cref="NullReferenceException">The address of <paramref name="location1" /> is a null pointer. </exception>
        public void ReplaceHenchmen(HenchMen newMinion)
        {
            //This will now cause a compiler error
            //Name = "something";

            //did static using for Interlock.Exchange
            var oldMinion = Exchange(ref _minion, newMinion);
            (oldMinion as IDisposable)?.Dispose();
        }
 /// <exception cref="NullReferenceException">The address of <paramref name="location1" /> is a null pointer. </exception>
 public void ReplaceHenchmen(HenchMen newMinion)
 {
     //did static using for Interlock.Exchange
     var oldMinion = Exchange(ref _minion, newMinion);
    (oldMinion as IDisposable)?.Dispose();
 }