/// <summary> /// static constructor /// </summary> static LZFX() { // If this is a 64-bit process if (Environment.Is64BitProcess) { // assign the delegates to call the functions in the 64-bit DLL lzfx_compress = LZFX64.lzfx_compress; lzfx_decompress = LZFX64.lzfx_decompress; } // If this is a 32-bit process else { // assign the delegates to call the functions in the 32-bit DLL lzfx_compress = LZFX32.lzfx_compress; lzfx_decompress = LZFX32.lzfx_decompress; } }