public static double RubberBandStretcher_GetTimeRatio(IntPtr rbs) { if (IntPtr.Size == 8) { return(RubberBandNativeMethodsx64.RubberBandStretcher_GetTimeRatio(rbs)); } else { return(RubberBandNativeMethodsWin32.RubberBandStretcher_GetTimeRatio(rbs)); } }