/// <summary>
        /// Tries to get the method detours for the specified method.
        /// </summary>
        /// <param name="method">The method.</param>
        /// <param name="detours">The method detours.</param>
        /// <returns>True if the method detours were retrieved.</returns>
        private static bool TryGetMethodDetours(Methods method, out MethodDetoursBase detours)
        {
            if (methodsDetours != null && methodsDetours.TryGetValue(method, out detours) && detours != null)
            {
                return(true);
            }

            detours = null;
            return(false);
        }
        /// <summary>
        /// Tries to get the method detours for the specified method.
        /// </summary>
        /// <param name="method">The method.</param>
        /// <param name="detours">The method detours.</param>
        /// <returns>True if the method detours were retrieved.</returns>
        private static bool TryGetMethodDetours(Methods method, out MethodDetoursBase detours)
        {
            if (methodsDetours != null && methodsDetours.TryGetValue(method, out detours) && detours != null)
            {
                return true;
            }

            detours = null;
            return false;
        }