public static void RubberBandStretcher_SetDetectorOption(IntPtr rbs, int options) { if (IntPtr.Size == 8) { RubberBandNativeMethodsx64.RubberBandStretcher_SetDetectorOption(rbs, options); } else { RubberBandNativeMethodsWin32.RubberBandStretcher_SetDetectorOption(rbs, options); } }