private static Res GetLoader() { if (loader == null) { Res res = new Res(); Interlocked.CompareExchange<Res>(ref loader, res, null); } return loader; }