public static AnalyticsResult SetCustomEventHistogramThresholds <T>(string eventName, int count, T[] data) where T : struct, IComparable <T>, IEquatable <T>
        {
            bool flag = string.IsNullOrEmpty(eventName);

            if (flag)
            {
                throw new ArgumentException("Cannot set event name to an empty or null string");
            }
            bool            flag2 = !ContinuousEvent.IsInitialized();
            AnalyticsResult result;

            if (flag2)
            {
                result = AnalyticsResult.NotInitialized;
            }
            else
            {
                result = ContinuousEvent.InternalSetCustomEventHistogramThresholds(typeof(T).ToString(), eventName, count, data);
            }
            return(result);
        }
        public static AnalyticsResult ConfigureEvent(string eventName, string metricName, float interval, float period, bool enabled = true, int ver = 1, string prefix = "")
        {
            bool flag = string.IsNullOrEmpty(eventName);

            if (flag)
            {
                throw new ArgumentException("Cannot set event name to an empty or null string");
            }
            bool            flag2 = !ContinuousEvent.IsInitialized();
            AnalyticsResult result;

            if (flag2)
            {
                result = AnalyticsResult.NotInitialized;
            }
            else
            {
                result = ContinuousEvent.InternalConfigureEvent(eventName, metricName, interval, period, enabled, ver, prefix);
            }
            return(result);
        }
        public static AnalyticsResult RegisterCollector <T>(string metricName, Func <T> del) where T : struct, IComparable <T>, IEquatable <T>
        {
            bool flag = string.IsNullOrEmpty(metricName);

            if (flag)
            {
                throw new ArgumentException("Cannot set metric name to an empty or null string");
            }
            bool            flag2 = !ContinuousEvent.IsInitialized();
            AnalyticsResult result;

            if (flag2)
            {
                result = AnalyticsResult.NotInitialized;
            }
            else
            {
                result = ContinuousEvent.InternalRegisterCollector(typeof(T).ToString(), metricName, del);
            }
            return(result);
        }