public static void Release() { if (--refCount <= 0) { instance.destroy(); instance = null; } }
public static StructureImageBuilder Acquire() { if (instance == null) { instance = new StructureImageBuilder(); } refCount++; return(instance); }