Exemple #1
0
        /// <summary>
        ///     Check a function is available for this version.
        /// </summary>
        /// <param name="functionInfo"></param>
        /// <returns></returns>
        public bool IsFunctionAvailable(LibVlcFunctionAttribute functionInfo)
        {
            var result = true;

            if (functionInfo.MinVersion != null)
            {
                result = functionInfo.MinVersion <= Version;
            }

            if (functionInfo.MaxVersion != null)
            {
                result = result && Version <= functionInfo.MaxVersion;
            }

            if (functionInfo.Dev != null)
            {
                result = result && DevString == functionInfo.Dev;
            }

            return(result);
        }
Exemple #2
0
        /// <summary>
        ///     Check a function is available for this version.
        /// </summary>
        /// <param name="functionInfo"></param>
        /// <returns></returns>
        public bool IsFunctionAvailable(LibVlcFunctionAttribute functionInfo)
        {
            var result = true;

            if (functionInfo.MinVersion != null)
            {
                result = functionInfo.MinVersion < Version;
            }

            if (functionInfo.MaxVersion != null)
            {
                result = result && Version < functionInfo.MaxVersion;
            }

            if (functionInfo.Dev != null)
            {
                result = result && DevString == functionInfo.Dev;
            }

            return result;
        }